History log of /freebsd-10.0-release/sbin/routed/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
273415 21-Oct-2014 delphij

Fix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]

Fix routed(8) remote denial of service vulnerability. [SA-14:21]

Fix memory leak in sandboxed namei lookup. [SA-14:22]

Fix OpenSSL multiple vulnerabilities. [SA-14:23]

Approved by: so

259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


250604 13-May-2013 joel

mdoc sweep


230045 13-Jan-2012 kevlo

Fix a style bug


229778 07-Jan-2012 uqs

Spelling fixes for sbin/


228607 16-Dec-2011 dim

Use NO_WARRAY_BOUNDS for sbin/routed/rtquery.

MFC after: 1 week


215702 22-Nov-2010 brucec

Fix use of AND operator: should be bitwise instead of logical.


214054 19-Oct-2010 uqs

mdoc: drop even more redundant .Pp calls

No change in rendered output, less mandoc lint warnings.

Tool provided by: Nobuyuki Koganemaru n-kogane at syd.odn.ne.jp


204405 27-Feb-2010 uqs

routed(8)/rtquery(8) bump/demote to WARNS=3 for all archs

- The MACHINE_ARCH check is not exhaustive (missing at least powerpc),
and generally not worth maintaining.
- While here, fix whitespace and ordering of the Makefile

PR: bin/140081
Approved by: ed (co-mentor)


201145 28-Dec-2009 antoine

(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
Fix some wrong usages.
Note: this does not affect generated binaries as this argument is not used.

PR: 137213
Submitted by: Eygene Ryabinkin (initial version)
MFC after: 1 month


198236 19-Oct-2009 ru

Switch the default WARNS level for sbin/ to 6.

Submitted by: Ulrich Spörlein


190757 06-Apr-2009 phk

Only raise WARNS to 6 on i386 and amd64, strict alignment platforms still
barf at some of the gratuitous pointer gymnastics, and I do not see a
simple solution.


190745 05-Apr-2009 phk

Silence a printf warning


190718 05-Apr-2009 phk

Add some consts, remove some unused stuff and other attempts to calm
FlexeLint down.


190717 05-Apr-2009 phk

Fix casts which are not by definition safe, but which malloc(3)
makes safe for us.


190716 05-Apr-2009 phk

Some constifications


190715 05-Apr-2009 phk

Modernize prototypes (ie: no extern)

Make lots of stuff static.


190713 05-Apr-2009 phk

Convert list of remote interfaces to LIST_* macros


190712 05-Apr-2009 phk

Kick WARNS level up to 6 by fixing various trivial warnings.


190711 05-Apr-2009 phk

Use <sys/queue.h> to manage the interface list.


190710 05-Apr-2009 phk

Remove newlines from string argument of __COPYRIGHT(), it results in
assembler warning messages.


190709 05-Apr-2009 phk

Send multicast on p2p interfaces if they can and are not prohibited
from doing so with no_rip_mcast in /etc/gateways.

This allows routed(8) to work with the way ports/security/openvpn
employs the tun(4) interface.


186119 15-Dec-2008 qingli

This main goals of this project are:
1. separating L2 tables (ARP, NDP) from the L3 routing tables
2. removing as much locking dependencies among these layers as
possible to allow for some parallelism in the search operations
3. simplify the logic in the routing code,

The most notable end result is the obsolescent of the route
cloning (RTF_CLONING) concept, which translated into code reduction
in both IPv4 ARP and IPv6 NDP related modules, and size reduction in
struct rtentry{}. The change in design obsoletes the semantics of
RTF_CLONING, RTF_WASCLONE and RTF_LLINFO routing flags. The userland
applications such as "arp" and "ndp" have been modified to reflect
those changes. The output from "netstat -r" shows only the routing
entries.

Quite a few developers have contributed to this project in the
past: Glebius Smirnoff, Luigi Rizzo, Alessandro Cerri, and
Andre Oppermann. And most recently:

- Kip Macy revised the locking code completely, thus completing
the last piece of the puzzle, Kip has also been conducting
active functional testing
- Sam Leffler has helped me improving/refactoring the code, and
provided valuable reviews
- Julian Elischer setup the perforce tree for me and has helped
me maintaining that branch before the svn conversion


180993 30-Jul-2008 phk

Update routed to use the RFC 3678 protocol-independent multicast API. Use
IP_MULTICAST_IF with struct ip_mreqn (obtained from Linux) to tell the
stack which interface index to use for sending IPv4 datagrams.

Submitted by: bms
Tested by: phk


180973 29-Jul-2008 phk

Clarify which route property routed(8) looks at.


163999 05-Nov-2006 trhodes

Sync up with rhyolite routed 2.31 which fixes the handling of varargs.
Remove -p from usage, it's gone completely now.

PR: 83387
Submited by: arved


153558 20-Dec-2005 maxim

o Remove rev. 1.14 debug printf(3) leftovers.

PR: bin/90389
Submitted by: Gavin Atkinson
OK'ed by: phk


148726 05-Aug-2005 stefanf

Use socklen_t where appropriate.


146838 31-May-2005 stefanf

Remove #ident directives, they don't exist on the vendor branch anymore.


140415 18-Jan-2005 ru

Sort sections.


133715 14-Aug-2004 phk

Don't declare everything we find on a loopback interface for passive:

Only the actual loopback address should be declared passive, other
addresses are very likely to be desirable to announce.

Check for IFF_LOOPBACK instead of IFF_PASSIVE to determine if we have
an unknown interface type.


133650 13-Aug-2004 ru

Removed commented out bitrot.


131488 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


130557 16-Jun-2004 bms

Turn on RFC 1724 compliant behaviour with regards to IP_ADD_MEMBERSHIP;
routed should be able to specify multicast memberships to be added by
interface index. This should fix the unnumbered / point-to-point case
for RIPv2.

PR: bin/51927
Requested by: Eugene Grosbein


130498 15-Jun-2004 bms

Ignore kernel routes with the RTF_WASCLONED flag set. This is a slight
modification of a patch which was already applied for BSD/OS in the
Rhyolite.com sources; this file is already off the vendor branch.

PR: bin/57484
Submitted by: Richard Perini


129327 17-May-2004 ru

Assorted markup, grammar, and spelling fixes.


128186 13-Apr-2004 luigi

Replace ROUNDUP/ADVANCE with SA_SIZE


128073 09-Apr-2004 markm

Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core, imp


126250 25-Feb-2004 bms

Sync HEAD sources to vendor branch import of routed v2.27 from rhyolite.com.
Update <protocols/routed.h> for the MD5 changes requested in bin/35843.
Preserve local changes.

Education by: obrien, markm, pointy-stick
PR: bin/35843 (and doubtless others)


126178 23-Feb-2004 johan

style.Makefile(5):
Use WARNS?= instead of WARNS=.


125503 05-Feb-2004 ru

Fixed style of DPADD and LDADD assignments as per style.Makefile(5).


125196 29-Jan-2004 ru

Removed duplicate $FreeBSD$ tag.


118582 07-Aug-2003 imp

Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, so
remove the unneeded +1.


116037 08-Jun-2003 charnier

The .Xr utility


115161 19-May-2003 ru

mdoc(7) fixes: Mark "gated" with the .Nm macro.

Approved by: re (blanket)


114644 04-May-2003 murray

Note that gated is a commercial routing product now, and remove
references to it's man page, which is almost never installed on a
FreeBSD system. The information about using this command with gated
has been retained. I have just made it clear that gated is not a part
of FreeBSD.

PR: docs/51407


110670 11-Feb-2003 ache

Use srandomdev() for FreeBSD


108533 01-Jan-2003 schweikh

Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.


102411 25-Aug-2002 charnier

Replace various spelling with FALLTHROUGH which is lint()able


102231 21-Aug-2002 trhodes

s/filesystem/file system/g as discussed on -developers


99503 06-Jul-2002 charnier

The .Nm utility.


94125 07-Apr-2002 asmodai

Add the possibility to use a no_rip_out configuration option in order
to stop routed from sending out RIP updates.

PR: 29090
Submitted by: Matthew Braithwaite <mab@red-bean.com>


92883 21-Mar-2002 imp

o remove __P
o remove main prototype


92337 15-Mar-2002 ru

mdoc(7) police: GC duplicate VCS ID.


90868 18-Feb-2002 mike

o Move NTOHL() and associated macros into <sys/param.h>. These are
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
complexities associated with having MD (asm and inline) versions, and
having to prevent exposure of these functions in other headers that
happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.

Tested on: alpha, i386
Reviewed by: bde, jake, tmm


89754 24-Jan-2002 schweikh

Insert a missing paragraph break (.Pp).
MFC after: 3 weeks


89433 16-Jan-2002 schweikh

Fix typo by s/advertise/advertises/
MFC after: 4 weeks


87325 04-Dec-2001 obrien

Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by: mike


85473 25-Oct-2001 ru

The directory of the makefile that's including the file is tried first.
See section 3.2 of "PMake - A Tutorial" in /usr/share/doc/psd/12.make.


81604 13-Aug-2001 peter

ftrace is already initialized


81458 10-Aug-2001 ru

mdoc(7) police: fixed the "new sentence" bogons.


79530 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


79454 09-Jul-2001 dd

mdoc(7) police: remove extraneous .Pp before and/or after .Sh.


79366 06-Jul-2001 ru

mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).


77835 06-Jun-2001 phk

Fix a byteorder problem in a diagnostic message.

PR: 16625
Submitted by: Peter Jeremy <peter.jeremy@ALCATEL.COM.AU>


74815 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


74531 20-Mar-2001 ru

Set the default manual section for sbin/ to 8.


71099 16-Jan-2001 ru

Prepare for mdoc(7)NG.


70152 18-Dec-2000 ru

Prepare for mdoc(7)NG.


68960 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68575 10-Nov-2000 ru

Avoid use of direct troff requests in mdoc(7) manual pages.


64525 11-Aug-2000 sheldonh

Add $FreeBSD$.


64483 10-Aug-2000 sheldonh

Resolve conflicts.


64131 02-Aug-2000 sheldonh

Resolve conflicts from vendor merge.


61186 02-Jun-2000 jlemon

Fix memory leak when route addition fails.

Obtained from: NetBSD


58821 30-Mar-2000 shin

Add new rtmsg types which already defined in kernel.


58805 30-Mar-2000 shin

Prevent buffer overflow.

PR: bin/17657
Submitted by: tanimura


53166 15-Nov-1999 kris

Remove dead xrefs to gated(8) and htable(8)

Obtained from: OpenBSD


50969 05-Sep-1999 peter

$Revision$ -> $FreeBSD$ (more cleanup needed here)


50476 28-Aug-1999 peter

$Id$ -> $FreeBSD$


49822 15-Aug-1999 mpp

Various man page cleanup:

- Sort xrefs
- FreeBSD.ORG -> FreeBSD.org
- Properly xref RFCs.
- Be consistent with section names as outlined in mdoc(7).
- Other misc mdoc cleanup.

PR: doc/13144
Submitted by: Alexey M. Zelkin <phantom@cris.net>


46524 05-May-1999 markm

Incomplete. Back out until I can revisit.


46489 05-May-1999 markm

Restore perror --> err changes.


46303 02-May-1999 markm

Merge-o-matic and add a bunch of $Id's


37908 28-Jul-1998 charnier

Spelling, add rcsid, remove unused #includes.
Convert 1000000 usec to 1 sec 0 usec.
Use provided safe malloc (rtmalloc()) instead of malloc(): exit on allocation
failure.
Correct use of .Nm
Add usage() and use errx().


37815 22-Jul-1998 phk

/usr/src/sbin/routed/parms.c and .../routed/rtquery/rtquery.c both
contain code that compare a char pointer with a char. As this
doesn't make much sense, it looks very much as if a '*' has been
dropped by mistake. I have made no analysis of the possible
consequences of the problem.

PR: 7319
Reviewed by: phk
Submitted by: Anders Thulin <Anders.X.Thulin@telia.se>


37030 17-Jun-1998 jkoshy

Remove reference to non-existent htable(8).

PR: 6940


35306 19-Apr-1998 phk

Problem whith "subnet=" statement in /etc/gateways.
routed discards the first character of the network address.
Example: "subnet=10.0.0.0/24,1"
The network address is interpreted as 0.0.0.0/24,1.
PR: 4825
Reviewed by: phk
Submitted by: Mike E. Matsnev <mike@azog.cs.msu.su>


32502 14-Jan-1998 charnier

Use err(3). Change exit(-1). Remove unused #include.


29314 12-Sep-1997 danny

Fix typo in comment.


27503 18-Jul-1997 julian

Check if routed had the same problems that route(1) had.
The answer is not really, but almost.
it sent data that was ok, though it was a hack,
but it was bug-compatible with the kernel on receiving them. This also
had been fixed with a hack.. I hacked it better I think.


26725 18-Jun-1997 charnier

Sync man page and usage string. Remove unused -p option from getopt call.


26724 18-Jun-1997 charnier

Sync man page and usage string.


26617 13-Jun-1997 max

Typo fix.
PR: 3854
Submitted by: Takahiro Yugawa <yugawa@orleans.rim.or.jp>


24359 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


23769 12-Mar-1997 mpp

Some minor mdoc cleanup. Partially based on PR# 2959.


22990 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


22050 28-Jan-1997 mpp

Some various mdoc cleanup.

Partially Obtained from: NetBSD-bugs mailing list


21877 19-Jan-1997 mpp

Various minor cleanup.

Partially Obtained from: NetBSD-bugs


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


21635 13-Jan-1997 wosch

Sort cross references.


21379 06-Jan-1997 wollman

This commit was generated by cvs2svn to compensate for changes in r21378,
which included commits to RCS files with non-trunk default branches.


21253 03-Jan-1997 ache

Merge to eliminate conflict


20735 21-Dec-1996 ache

FIx coredump with rtquery.
It is just quick fix taken from new routed sources,
full new routed importing I leave to wollman


20610 17-Dec-1996 wollman

Delete redundant include of <sys/time.h>


20609 17-Dec-1996 wollman

Merge from vendor branch.


20607 17-Dec-1996 wollman

This commit was generated by cvs2svn to compensate for changes in r20606,
which included commits to RCS files with non-trunk default branches.


20342 11-Dec-1996 wollman

Merge from vendor branch.


20340 11-Dec-1996 wollman

This commit was generated by cvs2svn to compensate for changes in r20339,
which included commits to RCS files with non-trunk default branches.


20287 10-Dec-1996 wollman

Fix up programs which expect <net/if.h> to include <sys/time.h> to instead
do it themselves. (Some of these programs actually depended on this
beyond compiling the definition of struct ifinfo!) Also fix up some
other #include messes while we're at it.


19896 20-Nov-1996 wollman

For some reason the merge of this file didn't get committed properly.
Who has the conical hat?

Make things compile again.


19885 19-Nov-1996 wollman

Merge from vendor branch and use system MD5 library.


19883 19-Nov-1996 wollman

This commit was generated by cvs2svn to compensate for changes in r19882,
which included commits to RCS files with non-trunk default branches.


19881 19-Nov-1996 wollman

This commit was generated by cvs2svn to compensate for changes in r19880,
which included commits to RCS files with non-trunk default branches.


18323 16-Sep-1996 wollman

Change location of trace files and disable remote trace file change
feature.


18322 16-Sep-1996 wollman

Layer on FreeBSD local changes from old routed.


18317 16-Sep-1996 wollman

This commit was generated by cvs2svn to compensate for changes in r18316,
which included commits to RCS files with non-trunk default branches.