diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 02:16:19 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 02:16:19 +0900 |
commit | 8b01a22ac70e86118b232bd2ae35433ac97f8418 (patch) | |
tree | 23fbfc18c233811a4ef7d256b699c3e8ed1b1cd5 /nicutils.c | |
parent | 58fd38e868db4dd690a3c2164857f377b19df841 (diff) |
Split inputs into separate lines when multiple interactive commands are received
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; } |