summaryrefslogtreecommitdiff
path: root/nicutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'nicutils.c')
-rw-r--r--nicutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nicutils.c b/nicutils.c
index 4396858..0d42a66 100644
--- a/nicutils.c
+++ b/nicutils.c
@@ -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;
}