Backout rev. 1.17 per ru@ request: there are net.graph.recvspace and
net.graph.maxdgram sysctls.
This commit is contained in:
parent
e02846ce13
commit
c44e20ebec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141303
@ -114,7 +114,7 @@ main(int ac, char *av[])
|
|||||||
char name[NG_NODESIZ];
|
char name[NG_NODESIZ];
|
||||||
int interactive = isatty(0) && isatty(1);
|
int interactive = isatty(0) && isatty(1);
|
||||||
FILE *fp = NULL;
|
FILE *fp = NULL;
|
||||||
int ch, size, rtn = 0;
|
int ch, rtn = 0;
|
||||||
|
|
||||||
/* Set default node name */
|
/* Set default node name */
|
||||||
snprintf(name, sizeof(name), "ngctl%d", getpid());
|
snprintf(name, sizeof(name), "ngctl%d", getpid());
|
||||||
@ -146,9 +146,7 @@ main(int ac, char *av[])
|
|||||||
/* Create a new socket node */
|
/* Create a new socket node */
|
||||||
if (NgMkSockNode(name, &csock, &dsock) < 0)
|
if (NgMkSockNode(name, &csock, &dsock) < 0)
|
||||||
err(EX_OSERR, "can't create node");
|
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 */
|
/* Do commands as requested */
|
||||||
if (ac == 0) {
|
if (ac == 0) {
|
||||||
if (fp != NULL) {
|
if (fp != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user