NetBSD/sbin/routed
christos 7ed7713848 From Vernon Schryver:
Wolfgang Solfrank has explained the problem with router discovery
in `routed` in a way I can understand.

Let's assume that the configured preference of the interface is 5.
This gets converted to 0x80000005 through the use of the UNSIGN_PREF
macro.  Later on, this value gets put into the PREF macro, which
compares it against the interface metric(s) (let's assume those
values to be 0 for now).  Of course the 0x80000005, cast to int,
is much less than 0, so the clamping rule is triggered, which
gives us a value of 1.  This is then converted via SIGN_PREF into
0x80000001 and put into the message.  Certainly, this isn't what
was intended.
2004-03-27 20:50:43 +00:00
..
rtquery Correct error in previous, noted by Nick Hudson. 2003-09-23 12:14:49 +00:00
Makefile
defs.h
if.c
input.c
main.c From Vernon Schryver: 2004-03-27 20:50:43 +00:00
output.c
parms.c strcat -> strlcat 2003-07-03 03:04:04 +00:00
pathnames.h
radix.c
radix.h
rdisc.c From Vernon Schryver: 2004-03-27 20:50:43 +00:00
routed.8 From Vernon Schryver: 2004-03-27 20:50:43 +00:00
table.c
trace.c sprintf can return negative 2003-07-12 14:36:07 +00:00