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
defs.h sync with routed 2.27 2002-11-30 04:04:23 +00:00
if.c sync with routed 2.27 2002-11-30 04:04:23 +00:00
input.c Fix compilation problems on non-i386. 2002-12-01 08:19:48 +00:00
main.c From Vernon Schryver: 2004-03-27 20:50:43 +00:00
Makefile
output.c sync with routed 2.27 2002-11-30 04:04:23 +00:00
parms.c strcat -> strlcat 2003-07-03 03:04:04 +00:00
pathnames.h
radix.c Avoid strict alias warnings. 2002-12-06 02:18:37 +00:00
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 strcpy/sprintf cleanup. from openbsd 2003-04-21 08:54:42 +00:00
trace.c sprintf can return negative 2003-07-12 14:36:07 +00:00