plan 9 kernel history: overview | file list | diff list

1999/0711/ip/devip.c (diff list | history)

1999/0711/sys/src/9/ip/devip.c:849,8541999/0817/sys/src/9/ip/devip.c:849,863 (short | long | prev | next)
1998/0306    
} 
 
static void 
1999/0817    
tosctlmsg(Conv *c, Cmdbuf *cb) 
{ 
	if(cb->nf < 2) 
		c->tos = 0; 
	else 
		c->tos = atoi(cb->f[1]); 
} 
 
static void 
1998/0306    
ttlctlmsg(Conv *c, Cmdbuf *cb) 
{ 
	if(cb->nf < 2) 
1999/0711/sys/src/9/ip/devip.c:917,9221999/0817/sys/src/9/ip/devip.c:926,933
1998/0306    
			bindctlmsg(x, c, cb); 
		else if(strcmp(cb->f[0], "ttl") == 0) 
			ttlctlmsg(c, cb); 
1999/0817    
		else if(strcmp(cb->f[0], "tos") == 0) 
			tosctlmsg(c, cb); 
1998/0306    
		else if(strcmp(cb->f[0], "addmulti") == 0){ 
			if(cb->nf < 2) 
				error("addmulti needs interface address"); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)