History log of /freebsd-current/sbin/routed/table.c
Revision Date Author Comments
# da5432ed 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: alt two-line .c pattern

Remove /^\s*__RCSID\("\$FreeBSD\$"\);\n\n/


# b3e76948 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# 7e757182 25-Dec-2020 Xin LI <delphij@FreeBSD.org>

sbin/routed: Remove unused code for sgi and NetBSD.

MFC after: 2 weeks


# 8a16b7a1 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

General further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# 2f8c6c0a 16-Apr-2017 Patrick Kelsey <pkelsey@FreeBSD.org>

Fix userland tools that don't check the format of routing socket
messages before accessing message fields that may not be present,
removing dead/duplicate/misleading code along the way.

Document the message format for each routing socket message in
route.h.

Fix a bug in usr.bin/netstat introduced in r287351 that resulted in
pointer computation with essentially random 16-bit offsets and
dereferencing of the results.

Reviewed by: ae
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D10330


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# e09d48f6 14-May-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

routed(8): Misc. cleanups to squelch Coverity.

table.c:
Copy into fixed size buffer.

trace.c:
Argument got dup2() cannot be negative.
Copy into fixed size buffer.

CID: 1006785, 1006786, 271301
Obtained from: NetBSD
MFC after: 2 weeks.


# 562c5a82 14-May-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

routed(8): use NULL instead of zero for pointers.


# 4b85a12f 07-Jan-2012 Ulrich Spörlein <uqs@FreeBSD.org>

Spelling fixes for sbin/


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# a3e04ddc 05-Apr-2009 Poul-Henning Kamp <phk@FreeBSD.org>

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


# f2ca6d8a 05-Apr-2009 Poul-Henning Kamp <phk@FreeBSD.org>

Modernize prototypes (ie: no extern)

Make lots of stuff static.


# 9940236e 05-Apr-2009 Poul-Henning Kamp <phk@FreeBSD.org>

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


# 38ae6523 05-Apr-2009 Poul-Henning Kamp <phk@FreeBSD.org>

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


# 6e6b3f7c 14-Dec-2008 Qing Li <qingli@FreeBSD.org>

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


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 92e7a424 31-May-2005 Stefan Farfeleder <stefanf@FreeBSD.org>

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


# 0529700a 14-Jun-2004 Bruce M Simpson <bms@FreeBSD.org>

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


# 4c723140 09-Apr-2004 Mark Murray <markm@FreeBSD.org>

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

Approved by: core, imp


# caa79e36 25-Feb-2004 Bruce M Simpson <bms@FreeBSD.org>

Virgin import of rhyolite.com routed v2.27


# 9d5abbdd 01-Jan-2003 Jens Schweikhardt <schweikh@FreeBSD.org>

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


# fd8e4ebc 18-Feb-2002 Mike Barcroft <mike@FreeBSD.org>

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


# 8b336df1 10-Aug-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Import routed-2.22.


# f7434bbd 02-Aug-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Import routed-2.21.


# 48f0c5dc 02-Jun-2000 Jonathan Lemon <jlemon@FreeBSD.org>

Fix memory leak when route addition fails.

Obtained from: NetBSD


# d2a62388 30-Mar-2000 Yoshinobu Inoue <shin@FreeBSD.org>

Add new rtmsg types which already defined in kernel.


# 230df2f6 29-Mar-2000 Yoshinobu Inoue <shin@FreeBSD.org>

Prevent buffer overflow.

PR: bin/17657
Submitted by: tanimura


# 7a6c3acc 05-Sep-1999 Peter Wemm <peter@FreeBSD.org>

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


# 7f3dea24 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 2c7a9781 02-May-1999 Mark Murray <markm@FreeBSD.org>

Latest-and-greatest routed.
Includes RIPv2 and Router Discovery.

Submitted by: Vernon Schryver <vjs@calcite.rhyolite.com>


# 90100551 28-Jul-1998 Philippe Charnier <charnier@FreeBSD.org>

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().


# a455644f 18-Jul-1997 Julian Elischer <julian@FreeBSD.org>

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.


# a30febec 11-Dec-1996 Garrett Wollman <wollman@FreeBSD.org>

Merge from vendor branch.


# 71965874 11-Dec-1996 Garrett Wollman <wollman@FreeBSD.org>

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>


# 52ad6021 19-Nov-1996 Garrett Wollman <wollman@FreeBSD.org>

Merge from vendor branch and use system MD5 library.


# d5b718b3 19-Nov-1996 Garrett Wollman <wollman@FreeBSD.org>

Latest version of SGI routed courtesy of Vern Schryver. This version
adds the capability to use MD5 authentication as defined in the latest
documents.

Submitted by: Vernon J. Schryver <vjs@mica.denver.sgi.com>


# 50d2cb3e 16-Sep-1996 Garrett Wollman <wollman@FreeBSD.org>

Layer on FreeBSD local changes from old routed.


# 7b6ab19d 16-Sep-1996 Garrett Wollman <wollman@FreeBSD.org>

Virgin import of new BSD/SGI routed. This update contains a number
of important bug fixes.

Obtained from: Vernon J. Schryver <vjs@mica.denver.sgi.com>