History log of /freebsd-current/sbin/routed/if.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.


# 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


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

routed: Fix use after free.

For the multihomed case, ifp be used after being freed. NULL the value
after freeing it and avoid getting into the branch without reassigning
a new value.

CID: 272671
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.


# 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.


# b108792d 27-Feb-2010 Ulrich Spörlein <uqs@FreeBSD.org>

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)


# e2b36efd 29-Jan-2010 Antoine Brodin <antoine@FreeBSD.org>

MFC r201145 to stable/8:
(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)


# 13e403fd 28-Dec-2009 Antoine Brodin <antoine@FreeBSD.org>

(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


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

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


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

Modernize prototypes (ie: no extern)

Make lots of stuff static.


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

Convert list of remote interfaces to LIST_* macros


# 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.


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

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


# 68b22388 30-Jul-2008 Poul-Henning Kamp <phk@FreeBSD.org>

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


# 52146665 20-Dec-2005 Maxim Konovalov <maxim@FreeBSD.org>

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

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


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

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


# e53915c9 14-Aug-2004 Poul-Henning Kamp <phk@FreeBSD.org>

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.


# 0b46c085 13-Apr-2004 Luigi Rizzo <luigi@FreeBSD.org>

Replace ROUNDUP/ADVANCE with SA_SIZE


# 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.


# 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.


# cdb877c3 06-Jan-1997 Garrett Wollman <wollman@FreeBSD.org>

Quoth Vern:

ftp.sgi.com:sgi/src/routed.tar.Z has a fix that has been cooking for a week
or so and that fixes a problem in the new hash tables for zillions of
interface aliases. The bug was that interfaces that come and go, such
as for SLIP and PPP, would get permanently lost.

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


# 337e72d0 17-Dec-1996 Garrett Wollman <wollman@FreeBSD.org>

Latest routed from Vern Schryver. This is supposed to fix
Andrey's rtquery problem.

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


# 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>


# 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>


# 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>