summaryrefslogtreecommitdiff
path: root/libexec/bootpd/rtmsg.c
AgeCommit message (Collapse)Author
2023-11-26libexec: Automated cleanup of cdefs and other formattingWarner Losh
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
2023-04-18bootpd: Use C89 function definitions.John Baldwin
Trim a few duplicate (but incomplete) function prototypes as well. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39520
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
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. Notes: svn path=/head/; revision=326025
2016-04-12bootpd(8): De-register and minor cleanups.Pedro F. Giffuni
For bootptest(8) also remuve an unused variable and replace 0 with a NULL for a pointer. Notes: svn path=/head/; revision=297865
2014-02-17Remove the 3rd clause ("advertising clause") of the BSD license asChristian Brueffer
permitted by the University of Berkeley on July 22, 1999. Reviewed by: imp MFC after: 1 week Notes: svn path=/head/; revision=262136
2013-01-31Retire struct sockaddr_inarp.Gleb Smirnoff
Since ARP and routing are separated, "proxy only" entries don't have any meaning, thus we don't need additional field in sockaddr to pass SIN_PROXY flag. New kernel is binary compatible with old tools, since sizes of sockaddr_inarp and sockaddr_in match, and sa_family are filled with same value. The structure declaration is left for compatibility with third party software, but in tree code no longer use it. Reviewed by: ru, andre, net@ Notes: svn path=/head/; revision=246143
2010-12-06Catch up with kernel using time_uptime to drive ARP timeouts.Gleb Smirnoff
Noticed by: jilles Notes: svn path=/head/; revision=216226
2009-03-31Use RTF_LLDATA.Olivier Houchard
Notes: svn path=/head/; revision=190601
2008-12-15This main goals of this project are:Qing Li
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 Notes: svn path=/head/; revision=186119
2003-02-05Add FBSDID. udp/bootps -> bootps/udp. Use err(3).Philippe Charnier
Notes: svn path=/head/; revision=110395
2002-10-09de-__P()Alfred Perlstein
Notes: svn path=/head/; revision=104742
1999-08-28$Id$ -> $FreeBSD$Peter Wemm
Notes: svn path=/head/; revision=50476
1998-01-16Removed most unused includes of <net/if_var.h> outside the kernel.Bruce Evans
Notes: svn path=/head/; revision=32570
1997-02-22Revert $FreeBSD$ to $Id$Peter Wemm
Notes: svn path=/head/; revision=22989
1997-01-14Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard
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. Notes: svn path=/head/; revision=21673
1997-01-03Update to match changes in <net/if.h>.Garrett Wollman
Notes: svn path=/head/; revision=21264
1996-12-10Fix up programs which expect <net/if.h> to include <sys/time.h> to insteadGarrett Wollman
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. Notes: svn path=/head/; revision=20287
1995-05-30Remove trailing whitespace.Rodney W. Grimes
Notes: svn path=/head/; revision=8870
1995-01-30Discard any messages which are buffered on the routing socket before usingDoug Rabson
it otherwise the response to one of our routing messages could be lost due to buffer overflow. Notes: svn path=/head/; revision=6034
1995-01-16Change to use RTM_CHANGE when an arp entry already exists. This closesDoug Rabson
problem bin/57 which was caused when an incomplete entry was present for the host which was booting. Notes: svn path=/head/; revision=5661
1994-09-30Rearrange bootpdPaul Traina
Notes: svn path=/cvs2svn/branches/MC/; revision=3229