summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2005-02-04 20:09:11 +0000
committermaxim <maxim@FreeBSD.org>2005-02-04 20:09:11 +0000
commitba4f5d9f13b8294173344b4bfc8dad89ac4d5fda (patch)
tree32b5f9a86abe9ab48bb47313fff4a15e90604878
parent2992840cdaf083bdf1b554aa932549a66f229ba8 (diff)
downloadFreeBSD-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.
-rw-r--r--usr.sbin/ngctl/main.c6
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) {
OpenPOWER on IntegriCloud