summaryrefslogtreecommitdiff
path: root/nicutils.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 02:16:19 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 02:16:19 +0900
commit8b01a22ac70e86118b232bd2ae35433ac97f8418 (patch)
tree23fbfc18c233811a4ef7d256b699c3e8ed1b1cd5 /nicutils.c
parent58fd38e868db4dd690a3c2164857f377b19df841 (diff)
Split inputs into separate lines when multiple interactive commands are received
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;
}