aboutsummaryrefslogtreecommitdiff
path: root/sbin/routed/rtquery/rtquery.c
Commit message (Collapse)AuthorAgeFilesLines
* sbin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | 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
* Remove copyright strings ifdef'd outWarner Losh2023-11-271-14/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* sbin: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: alt one-line .c patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*__RCSID\("\$FreeBSD\$"\);\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | 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
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=314436
* routed(8): use NULL instead of zero for pointers.Pedro F. Giffuni2016-05-141-18/+18
| | | | Notes: svn path=/head/; revision=299768
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-091-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Sync HEAD sources to vendor branch import of routed v2.27 from rhyolite.com.Bruce M Simpson2004-02-251-19/+32
|\ | | | | | | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=126250
| * Virgin import of rhyolite.com routed v2.27vendor/SGIBruce M Simpson2004-02-251-19/+32
| | | | | | | | Notes: svn path=/vendor/SGI/dist_v_2_21/; revision=126247
* | o Move NTOHL() and associated macros into <sys/param.h>. These areMike Barcroft2002-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 Notes: svn path=/head/; revision=90868
* | $Id$ -> $FreeBSD$Peter Wemm1999-08-281-2/+2
| | | | | | | | Notes: svn path=/head/; revision=50476
* | Incomplete. Back out until I can revisit.Mark Murray1999-05-051-11/+17
| | | | | | | | Notes: svn path=/head/; revision=46524
* | Restore perror --> err changes.Mark Murray1999-05-051-17/+11
| | | | | | | | Notes: svn path=/head/; revision=46489
* | Merge-o-matic and add a bunch of $Id'sMark Murray1999-05-021-95/+167
|\| | | | | | | Notes: svn path=/head/; revision=46303
| * Latest-and-greatest routed.vendor/SGI/vjs_990324vendor/SGI/v_2_17Mark Murray1999-05-021-85/+133
| | | | | | | | | | | | | | | | | | | | | | Includes RIPv2 and Router Discovery. Submitted by: Vernon Schryver <vjs@calcite.rhyolite.com> Notes: svn path=/vendor/SGI/dist2/; revision=46286 svn path=/vendor/SGI/tags/v_2_17/; revision=46287; tag=vendor/SGI/v_2_17 svn path=/vendor/SGI/vjs_990324/; revision=46288; tag=vendor/SGI/vjs_990324
| * Latest routed from Vern Schryver. This is supposed to fixvendor/SGI/vjs_961217Garrett Wollman1996-12-171-3/+3
| | | | | | | | | | | | | | | | | | | | Andrey's rtquery problem. Submitted by: Vernon J. Schryver <vjs@mica.denver.sgi.com> Notes: svn path=/vendor/SGI/dist_v_2_21/; revision=20606 svn path=/vendor/SGI/vjs_961217/; revision=20608; tag=vendor/SGI/vjs_961217
| * New version of Vern's routed. This includes more byte-order fixes,vendor/SGI/vjs_961211Garrett Wollman1996-12-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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> Notes: svn path=/vendor/SGI/dist_v_2_21/; revision=20339 svn path=/vendor/SGI/vjs_961211/; revision=20341; tag=vendor/SGI/vjs_961211
* | Spelling, add rcsid, remove unused #includes.Philippe Charnier1998-07-281-27/+30
| | | | | | | | | | | | | | | | | | | | | | 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(). Notes: svn path=/head/; revision=37908
* | /usr/src/sbin/routed/parms.c and .../routed/rtquery/rtquery.c bothPoul-Henning Kamp1998-07-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=37815
* | Use err(3). Change exit(-1). Remove unused #include.Philippe Charnier1998-01-141-35/+27
| | | | | | | | Notes: svn path=/head/; revision=32502
* | Sync man page and usage string.Philippe Charnier1997-06-181-10/+4
| | | | | | | | Notes: svn path=/head/; revision=26724
* | compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | | | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24359
* | Merge from vendor branch.Garrett Wollman1996-12-171-2/+2
| | | | | | | | Notes: svn path=/head/; revision=20609
* | Merge from vendor branch.Garrett Wollman1996-12-111-1/+0
| | | | | | | | Notes: svn path=/head/; revision=20342
* | Merge from vendor branch and use system MD5 library.Garrett Wollman1996-11-191-12/+2
|/ | | | Notes: svn path=/head/; revision=19885
* Latest version of SGI routed courtesy of Vern Schryver. This versionGarrett Wollman1996-11-191-13/+219
| | | | | | | | | | adds the capability to use MD5 authentication as defined in the latest documents. Submitted by: Vernon J. Schryver <vjs@mica.denver.sgi.com> Notes: svn path=/vendor/SGI/dist2/; revision=19880
* Virgin import of new BSD/SGI routed. This update contains a numbervendor/SGI/vjs_960912Garrett Wollman1996-09-161-0/+654
of important bug fixes. Obtained from: Vernon J. Schryver <vjs@mica.denver.sgi.com> Notes: svn path=/vendor/SGI/dist2/; revision=18316 svn path=/vendor/SGI/vjs_960912/; revision=18318; tag=vendor/SGI/vjs_960912