| 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,19 – 1999/0316/sys/src/9/ip/netlog.c:13,19 (short | long | prev | next) | ||
| 1997/0327 | /* * action log */ | |
| 1998/0313 |
| |
| 1999/0316 | struct Netlog { | |
| 1997/0327 | Lock; int opens; char* buf; | |
| 1998/0314/sys/src/9/ip/netlog.c:29,40 – 1999/0316/sys/src/9/ip/netlog.c:29,40 | ||
| 1997/0327 | Rendez; | |
| 1998/0313 | }; | |
| 1997/0327 |
| |
| 1999/0316 | typedef struct Netlogflag { | |
| 1997/0327 | char* name; int mask; | |
| 1999/0316 | } Netlogflag; | |
| 1998/0313 | ||
| 1997/0327 |
| |
| 1999/0316 | static Netlogflag flags[] = | |
| 1997/0327 | { { "ppp", Logppp, }, { "ip", Logip, }, | |
| 1998/0314/sys/src/9/ip/netlog.c:49,54 – 1999/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,63 – 1999/0316/sys/src/9/ip/netlog.c:58,64 | ||
| 1997/0327 | void | |
| 1998/0313 | netloginit(Fs *f) | |
| 1997/0327 | { | |
| 1998/0313 |
| |
| 1999/0316 | f->alog = smalloc(sizeof(Netlog)); | |
| 1998/0313 | } void | |
| 1998/0314/sys/src/9/ip/netlog.c:158,164 – 1999/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 |
| |
| 1999/0316 | Netlogflag *fp; | |
| 1997/0423 | char *fields[10], *p, buf[256]; | |
| 1997/0327 | if(len == 0) | |