diff options
author | maxim <maxim@FreeBSD.org> | 2005-02-04 20:09:11 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2005-02-04 20:09:11 +0000 |
commit | ba4f5d9f13b8294173344b4bfc8dad89ac4d5fda (patch) | |
tree | 32b5f9a86abe9ab48bb47313fff4a15e90604878 /usr.sbin | |
parent | 2992840cdaf083bdf1b554aa932549a66f229ba8 (diff) | |
download | FreeBSD-src-ba4f5d9f13b8294173344b4bfc8dad89ac4d5fda.zip FreeBSD-src-ba4f5d9f13b8294173344b4bfc8dad89ac4d5fda.tar.gz |
Backout rev. 1.17 per ru@ request: there are net.graph.recvspace and
net.graph.maxdgram sysctls.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ngctl/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ngctl/main.c b/usr.sbin/ngctl/main.c index 4be794f..fcd61df 100644 --- a/usr.sbin/ngctl/main.c +++ b/usr.sbin/ngctl/main.c @@ -114,7 +114,7 @@ main(int ac, char *av[]) char name[NG_NODESIZ]; int interactive = isatty(0) && isatty(1); FILE *fp = NULL; - int ch, size, rtn = 0; + int ch, rtn = 0; /* Set default node name */ snprintf(name, sizeof(name), "ngctl%d", getpid()); @@ -146,9 +146,7 @@ main(int ac, char *av[]) /* Create a new socket node */ if (NgMkSockNode(name, &csock, &dsock) < 0) err(EX_OSERR, "can't create node"); - size = 128 * 1024; - if (setsockopt(csock, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)) == -1) - err(1, "setsockopt"); + /* Do commands as requested */ if (ac == 0) { if (fp != NULL) { |