diff options
| author | rsc <devnull@localhost> | 2006-02-14 19:42:28 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2006-02-14 19:42:28 +0000 |
| commit | a38a183626848f897085b4d2e54dad6d39146948 (patch) | |
| tree | 208277c8824b8db08878f5f5d65fb1e484099ead /src/cmd/ip/snoopy/ospf.c | |
| parent | 2eef1fa31676e58b0038f1c02dcc8df5e23149e6 (diff) | |
| download | plan9port-a38a183626848f897085b4d2e54dad6d39146948.tar.gz plan9port-a38a183626848f897085b4d2e54dad6d39146948.zip | |
fixes
Diffstat (limited to 'src/cmd/ip/snoopy/ospf.c')
| -rwxr-xr-x | src/cmd/ip/snoopy/ospf.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/src/cmd/ip/snoopy/ospf.c b/src/cmd/ip/snoopy/ospf.c index 35ed55e1..10da17cd 100755 --- a/src/cmd/ip/snoopy/ospf.c +++ b/src/cmd/ip/snoopy/ospf.c @@ -90,11 +90,10 @@ struct Ospfhello }; char* -seprintospfhello(char *p, char *e, void *a, int x) +seprintospfhello(char *p, char *e, void *a) { Ospfhello *h = a; - USED(x); return seprint(p, e, "%s(mask %V interval %d opt %ux pri %ux deadt %d designated %V bdesignated %V)", ospftype[OSPFhello], h->mask, NetS(h->interval), h->options, h->pri, @@ -328,20 +327,6 @@ seprintospflsack(char *p, char *e, void *a, int len) return seprint(p, e, ")"); } -static void -p_compile(Filter *f) -{ - sysfatal("unknown ospf field: %s", f->s); -} - -static int -p_filter(Filter *f, Msg *m) -{ - USED(f); - USED(m); - return 0; -} - int p_seprint(Msg *m) { @@ -369,7 +354,7 @@ p_seprint(Msg *m) switch (ospf->type) { case OSPFhello: - p = seprintospfhello(p, e, ospf->data, x); + p = seprintospfhello(p, e, ospf->data); break; case OSPFdd: p = seprintospfdatadesc(p, e, ospf->data, x); @@ -395,10 +380,11 @@ Default: Proto ospf = { "ospf", - p_compile, - p_filter, + nil, + nil, p_seprint, nil, nil, + nil, defaultframer, }; |
