summaryrefslogtreecommitdiffstats
path: root/sbin/routed/if.c
Commit message (Collapse)AuthorAgeFilesLines
* routed(8)/rtquery(8) bump/demote to WARNS=3 for all archsuqs2010-02-271-2/+4
| | | | | | | | | - 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)
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-12-281-1/+1
| | | | | | | | | 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
* Fix casts which are not by definition safe, but which malloc(3)phk2009-04-051-6/+6
| | | | makes safe for us.
* Modernize prototypes (ie: no extern)phk2009-04-051-9/+12
| | | | Make lots of stuff static.
* Convert list of remote interfaces to LIST_* macrosphk2009-04-051-13/+5
|
* Kick WARNS level up to 6 by fixing various trivial warnings.phk2009-04-051-1/+2
|
* Use <sys/queue.h> to manage the interface list.phk2009-04-051-24/+14
|
* Update routed to use the RFC 3678 protocol-independent multicast API. Usephk2008-07-301-17/+14
| | | | | | | | 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
* o Remove rev. 1.14 debug printf(3) leftovers.maxim2005-12-201-6/+1
| | | | | | PR: bin/90389 Submitted by: Gavin Atkinson OK'ed by: phk
* Remove #ident directives, they don't exist on the vendor branch anymore.stefanf2005-05-311-1/+1
|
* Don't declare everything we find on a loopback interface for passive:phk2004-08-141-3/+9
| | | | | | | | 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.
* Replace ROUNDUP/ADVANCE with SA_SIZEluigi2004-04-131-16/+1
|
* Remove advertising clause from University of California Regent's license,markm2004-04-091-4/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Sync HEAD sources to vendor branch import of routed v2.27 from rhyolite.com.bms2004-02-251-10/+21
| | | | | | | | 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)
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Resolve conflicts.sheldonh2000-08-101-0/+3
|
* $Revision$ -> $FreeBSD$ (more cleanup needed here)peter1999-09-051-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-281-2/+2
|
* Merge-o-matic and add a bunch of $Id'smarkm1999-05-021-112/+152
|
* Spelling, add rcsid, remove unused #includes.charnier1998-07-281-6/+7
| | | | | | | | 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().
* Check if routed had the same problems that route(1) had.julian1997-07-181-11/+31
| | | | | | | 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.
* Quoth Vern:wollman1997-01-061-23/+24
| | | | | | | | | 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>
* Latest routed from Vern Schryver. This is supposed to fixwollman1996-12-171-17/+33
| | | | | | Andrey's rtquery problem. Submitted by: Vernon J. Schryver <vjs@mica.denver.sgi.com>
* New version of Vern's routed. This includes more byte-order fixes,wollman1996-12-111-29/+52
| | | | | | | 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>
* Latest version of SGI routed courtesy of Vern Schryver. This versionwollman1996-11-191-185/+333
| | | | | | | adds the capability to use MD5 authentication as defined in the latest documents. Submitted by: Vernon J. Schryver <vjs@mica.denver.sgi.com>
* Virgin import of new BSD/SGI routed. This update contains a numberwollman1996-09-161-0/+1153
of important bug fixes. Obtained from: Vernon J. Schryver <vjs@mica.denver.sgi.com>
OpenPOWER on IntegriCloud