diff options
Diffstat (limited to 'nicutils.c')
-rw-r--r-- | nicutils.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -26,7 +26,7 @@ #include <stdlib.h> #include <unistd.h> -#define BUFSIZE 8192 +#define NIC_BUF_SIZE 8192 static int netlink_createsock() { @@ -128,7 +128,7 @@ static char* route_defaultrouteint() } /* Initialize the buffer */ - char* msgBuf = calloc(BUFSIZE, 1); + char* msgBuf = calloc(NIC_BUF_SIZE, 1); if (msgBuf == NULL) { goto exit; } @@ -150,7 +150,7 @@ static char* route_defaultrouteint() } /* Read the response */ - if ((len = netlink_readsock(sock, msgBuf, msgSeq, getpid(), BUFSIZE)) < 0) { + if ((len = netlink_readsock(sock, msgBuf, msgSeq, getpid(), NIC_BUF_SIZE)) < 0) { goto exit; } |