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

1999/0316/ip/netlog.c (diff list | history)

1998/0314/sys/src/9/ip/netlog.c:13,191999/0316/sys/src/9/ip/netlog.c:13,19 (short | long | prev | next)
1997/0327    
/* 
 *  action log 
 */ 
1998/0313    
struct Log { 
1999/0316    
struct Netlog { 
1997/0327    
	Lock; 
	int	opens; 
	char*	buf; 
1998/0314/sys/src/9/ip/netlog.c:29,401999/0316/sys/src/9/ip/netlog.c:29,40
1997/0327    
	Rendez; 
1998/0313    
}; 
1997/0327    
 
typedef struct Logflag { 
1999/0316    
typedef struct Netlogflag { 
1997/0327    
	char*	name; 
	int	mask; 
} Logflag; 
1999/0316    
} Netlogflag; 
1998/0313    
 
1997/0327    
static Logflag flags[] = 
1999/0316    
static Netlogflag flags[] = 
1997/0327    
{ 
	{ "ppp",	Logppp, }, 
	{ "ip",		Logip, }, 
1998/0314/sys/src/9/ip/netlog.c:49,541999/0316/sys/src/9/ip/netlog.c:49,55
1997/0327    
	{ "tcpmsg",	Logtcp|Logtcpmsg, }, 
1997/0806    
	{ "udpmsg",	Logudp|Logudpmsg, }, 
	{ "ipmsg",	Logip|Logipmsg, }, 
1999/0316    
	{ "esp",	Logesp, }, 
1997/0327    
	{ nil,		0, }, 
}; 
 
1998/0314/sys/src/9/ip/netlog.c:57,631999/0316/sys/src/9/ip/netlog.c:58,64
1997/0327    
void 
1998/0313    
netloginit(Fs *f) 
1997/0327    
{ 
1998/0313    
	f->alog = smalloc(sizeof(Log)); 
1999/0316    
	f->alog = smalloc(sizeof(Netlog)); 
1998/0313    
} 
 
void 
1998/0314/sys/src/9/ip/netlog.c:158,1641999/0316/sys/src/9/ip/netlog.c:159,165
1998/0313    
netlogctl(Fs *f, char* s, int len) 
1997/0327    
{ 
	int i, n, set; 
1998/0313    
	Logflag *fp; 
1999/0316    
	Netlogflag *fp; 
1997/0423    
	char *fields[10], *p, buf[256]; 
1997/0327    
 
	if(len == 0) 


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