diff options
author | wollman <wollman@FreeBSD.org> | 1996-12-11 20:59:33 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-12-11 20:59:33 +0000 |
commit | 83f39a352fd47b026ef54bebe526949cf5b76367 (patch) | |
tree | 0f44d37675a614d1efef4ab2c3ea8aa9f9136e2d /sbin/routed/rdisc.c | |
parent | df774327d2e70a847613acdd71454d2411ec3a7b (diff) | |
download | FreeBSD-src-83f39a352fd47b026ef54bebe526949cf5b76367.zip FreeBSD-src-83f39a352fd47b026ef54bebe526949cf5b76367.tar.gz |
New version of Vern's routed. This includes more byte-order fixes,
some MD5 fixes, better tracing, configurable redirect processing,
and a fix to split-horizon/poisoned-reverse treatment.
Submitted by: Vernon J. Schryver <vjs@mica.denver.sgi.com>
Diffstat (limited to 'sbin/routed/rdisc.c')
-rw-r--r-- | sbin/routed/rdisc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/routed/rdisc.c b/sbin/routed/rdisc.c index 7433b792..1e9f42d 100644 --- a/sbin/routed/rdisc.c +++ b/sbin/routed/rdisc.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)rdisc.c 8.1 (Berkeley) x/y/95"; #elif defined(__NetBSD__) static char rcsid[] = "$NetBSD$"; #endif -#ident "$Revision: 1.17 $" +#ident "$Revision: 1.19 $" #include "defs.h" #include <netinet/in_systm.h> @@ -127,7 +127,7 @@ trace_rdisc(char *act, wp = &p->ad.icmp_ad_info[0].icmp_ad_addr; lim = &wp[(len - sizeof(p->ad)) / sizeof(*wp)]; for (i = 0; i < p->ad.icmp_ad_num && wp <= lim; i++) { - (void)fprintf(ftrace, "\t%s preference=%#x", + (void)fprintf(ftrace, "\t%s preference=%d", naddr_ntoa(wp[0]), (int)ntohl(wp[1])); wp += p->ad.icmp_ad_asize; } @@ -689,6 +689,7 @@ send_rdisc(union ad_u *p, switch (type) { case 0: /* unicast */ + default: msg = "Send"; break; |