diff options
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, }; |