aboutsummaryrefslogtreecommitdiff
path: root/include/arpa
Commit message (Collapse)AuthorAgeFilesLines
...
* MFCrypto: update RFC assigned telnet options (r1.9)Bill Fumerola2003-01-181-3/+8
| | | | Notes: svn path=/head/; revision=109467
* o Merge <machine/ansi.h> and <machine/types.h> into a new headerMike Barcroft2002-08-211-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien Notes: svn path=/head/; revision=102227
* Change a POSIX conditional to use the new __BSD_VISIBLE macro.Mike Barcroft2002-08-161-11/+11
| | | | | | | | | | | | | | | | Fix the following style bugs: o #ifdef, #ifndef, and #undef should be followed by a space, not a tab. o The second level of indentation in prototypes is 4 characters even when the function names are indented 1 extra character. o Type qualifiers that appear next to a * need a seperating space so that the qualifier isn't easily confused with parameter names. (eg. `char * __restrict' instead of `char *__restrict') Submitted by: bde (mostly) Notes: svn path=/head/; revision=101995
* -Add the restrict required by IEEE Std 1003.1-2001 in formRobert Drehmel2002-08-141-2/+3
| | | | | | | | | | of our __restrict macro to the prototypes and function definitions of inet_pton and inet_ntop. - Use ANSI-C function argument lists. - Adjust the prototypes in the manual page. Notes: svn path=/head/; revision=101880
* Prepend BIG_ENDIAN, BYTE_ORDER, LITTLE_ENDIAN, and PDP_ENDIAN with anMike Barcroft2002-05-281-6/+6
| | | | | | | | underscore. This is the preferred form. Also fix a preprocessor syntax error in an error-detection section. Notes: svn path=/head/; revision=97363
* Added new bsd.incs.mk which handles installing of header filesRuslan Ermilov2002-05-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | via INCS. Implemented INCSLINKS (equivalent to SYMLINKS) to handle symlinking include files. Allow for multiple groups of include files to be installed, with the powerful INCSGROUPS knob. Documentation to follow. Added standard `includes' and `incsinstall' targets, use them in Makefile.inc1. Headers from the following makefiles were not installed before (during `includes' in Makefile.inc1): kerberos5/lib/libtelnet/Makefile lib/libbz2/Makefile lib/libdevinfo/Makefile lib/libform/Makefile lib/libisc/Makefile lib/libmenu/Makefile lib/libmilter/Makefile lib/libpanel/Makefile Replaced all `beforeinstall' targets for installing includes with the INCS stuff. Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS, and for compatibility with NetBSD. Similarly for INCOWN, INCGRP, and INCMODE. Consistently use INCLUDEDIR instead of /usr/include. gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes were only lightly tested due to the missing contrib/libstdc++-v3. I fully tested the pre-WIP_GCC31 version of this patch with the contrib/libstdc++.295 stuff. These changes have been tested on i386 with the -DNO_WERROR "make world" and "make release". Notes: svn path=/head/; revision=96462
* Be more strict about exposing BSD-specific functions when a standardMike Barcroft2002-04-101-10/+4
| | | | | | | | | | | has been requested. Unconditionalize the definition of INET_ADDRSTRLEN and INET6_ADDRSTRLEN. Doing this helps expose bogus redefinitions in 3rd party software. Notes: svn path=/head/; revision=94353
* o Implement <sys/_types.h>, a new header for storing types that areMike Barcroft2002-04-011-14/+20
| | | | | | | | | | | | | | | | | | MI, not required to be a fixed size, and used in multiple headers. This will grow in time, as more things move here from <sys/types.h> and <machine/ansi.h>. o Add missing type definitions (uint16_t and uint32_t) to <arpa/inet.h> and <netinet/in.h>. o Reduce pollution in <sys/types.h> by using `#if _FOO_T_DECLARED' widgets to avoid including <sys/stdint.h>. o Add some missing type definitions to <unistd.h> and note the ones that still need to be added. o Make use of <sys/_types.h> primitives in <grp.h> and <sys/types.h>. Reviewed by: bde Notes: svn path=/head/; revision=93514
* Breath deep and take __P out of the system include files.Warner Losh2002-03-232-45/+45
| | | | | | | | | # This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure. Notes: svn path=/head/; revision=93032
* o Add INET_ADDRSTRLEN and INET6_ADDRSTRLEN defines to <arpa/inet.h>Mike Barcroft2002-03-101-2/+14
| | | | | | | | | | for POSIX.1-2001 conformance. o Add magic to <netinet/in.h> and <netinet6/in6.h> to prevent redefining INET_ADDRSTRLEN and INET6_ADDRSTRLEN. o Add a note about missing typedefs in <arpa/inet.h>. Notes: svn path=/head/; revision=91984
* o Don't require long long support in bswap64() functions.Mike Barcroft2002-03-091-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | o In i386's <machine/endian.h>, macros have some advantages over inlines, so change some inlines to macros. o In i386's <machine/endian.h>, ungarbage collect word_swap_int() (previously __uint16_swap_uint32), it has some uses on i386's with PDP endianness. Submitted by: bde o Move a comment up in <machine/endian.h> that was accidentially moved down a few revisions ago. o Reenable userland's use of optimized inline-asm versions of byteorder(3) functions. o Fix ordering of prototypes vs. redefinition of byteorder(3) functions, so that the non-GCC (libc asm) case has proper prototypes. o Add proper prototypes for byteorder(3) functions in <sys/param.h>. o Prevent redundant duplicate prototypes by making use of the _BYTEORDER_PROTOTYPED define. o Move the bswap16(), bswap32(), bswap64() C functions into MD space for platforms in which asm versions don't exist. This significantly reduces the complexity of some things at the cost of duplicate code. Reviewed by: bde Notes: svn path=/head/; revision=91959
* o Move NTOHL() and associated macros into <sys/param.h>. These areMike Barcroft2002-02-181-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Merge from master (crypto) telnet. WARNS fixes for alpha.Mark Murray2001-12-031-6/+6
| | | | Notes: svn path=/head/; revision=87268
* Add a missing underscore.Mike Barcroft2001-12-011-1/+1
| | | | | | | Submitted by: fenner Notes: svn path=/head/; revision=87159
* o Stop abusing MD headers with non-MD types.Mike Barcroft2001-12-011-9/+49
| | | | | | | | | | | | | | | | | | o Hide nonstandard functions and types in <netinet/in.h> when _POSIX_SOURCE is defined. o Add some missing types (required by POSIX.1-200x) to <netinet/in.h>. o Restore vendor ID from Rev 1.1 in <netinet/in.h> and make use of new __FBSDID() macro. o Fix some miscellaneous issues in <arpa/inet.h>. o Correct final argument for the inet_ntop() function (POSIX.1-200x). o Get rid of the namespace pollution from <sys/types.h> in <arpa/inet.h>. Reviewed by: fenner Partially submitted by: bde Notes: svn path=/head/; revision=87158
* Diff-reduce these two.Mark Murray2001-10-271-2/+3
| | | | | | | | | | Really, one of them needs to disappear. I'll figure out which later. Reported by: bde Notes: svn path=/head/; revision=85600
* RFC2349 (http://www.hypermail.org/rfcs/rfc2349.html) adds supportDavid E. O'Brien2001-09-271-0/+2
| | | | | | | | | | | | | | for negotiation of timeout and file size to the tftp protocol. This is required by some firmware like EFI boot managers (at least on HP i2000 Itanium servers) in order to boot an image using tftp. The attached patch implements the RFC, and in doing so also implements RFC2347; a generic tftp option extension. PR: 30710 Submitted by: Espen Skoglund <esk@ira.uka.de> Notes: svn path=/head/; revision=84047
* style(9) the structure definitions.David E. O'Brien2001-09-051-1/+2
| | | | Notes: svn path=/head/; revision=83047
* Revert previous delta; <arpa/inet.h> isn't quite ready to stop includingMike Barcroft2001-08-311-16/+1
| | | | | | | <sys/types.h>. Notes: svn path=/head/; revision=82628
* o Deprecate byteorder(3) prototypes from <sys/types.h>, these areMike Barcroft2001-08-311-1/+16
| | | | | | | | | | | | now prototyped indirectly in <arpa/inet.h>. o Deprecate in_addr_t and in_port_t typedefs in <sys/types.h>, these are now typedef'd in <arpa/inet.h>. Discussed with: bde PR: 29946 Notes: svn path=/head/; revision=82626
* Implement EDNS0 support, as EDNS0 support will be made mandatory forHajimu UMEMOTO2001-06-102-0/+2
| | | | | | | | | | | | | | IPv6 transport-ready resolvers/DNS servers. Need careful configuration when enable it. (default config is not affected). See manpage for details. XXX visible symbol __res_opt() is added, however, it is not supposed to be called from outside, libc minor is not bumped. Obtained from: KAME/NetBSD Notes: svn path=/head/; revision=78012
* IPv4 address is not unsigned int. This change introduces in_addr_t.Hajimu UMEMOTO2001-03-231-6/+6
| | | | | | | | | | PR: 9982 Adviced by: des Reviewed by: -alpha and -net (no objection) Obtained from: OpenBSD Notes: svn path=/head/; revision=74700
* Fix typo: compatability -> compatibility.Jeroen Ruigrok van der Werven2001-02-061-1/+2
| | | | | | | | | Compatability is not an existing english word. Add $FreeBSD$. Notes: svn path=/head/; revision=72092
* $Id$ -> $FreeBSD$Peter Wemm1999-08-273-3/+3
| | | | Notes: svn path=/head/; revision=50473
* Change an internal variable from "class" to "ns_class" for C++'s benefit.Peter Wemm1999-06-041-3/+3
| | | | | | | | | Apparently BIND-8.2.1 uses ns_class. Submitted by: John Plevyak <jplevyak@inktomi.com> Notes: svn path=/head/; revision=47742
* Update nameserver interface to bind-8.1.2 levels. We do not use IRS (yet?)Peter Wemm1998-06-113-232/+550
| | | | | | | | | | | since it has far wider impact than hostname lookups (including passwords). Note that this has more ugly symbol hiding and binary compatability hacks that can go away the second we bump majors. Obtained from: Mostly from diff against ISC bind-8.1.2 sources Notes: svn path=/head/; revision=36888
* Declare the various 2-byte values in TFTP as being `unsigned short'.Joerg Wunsch1997-10-191-3/+3
| | | | | | | | | | | | | RFC 1350 isn't very explicit about this, but the use of signed integers doesn't seem to make sense. Should be in 2.2.5, but is probably too late to be verified completely. PR: bin/4502 Submitted by: Dirk Nehrling <nerle@pdv.de> via Lars Koeller Notes: svn path=/head/; revision=30583
* Fix typo: "send" -> "end"Bill Fenner1997-08-111-1/+1
| | | | | | | | PR: bin/3474 Submitted by: graphix@iastate.edu (Kent Vander Velden) Notes: svn path=/head/; revision=28057
* Back out all of yesterdays include file changes.Eivind Eklund1997-05-071-2/+2
| | | | Notes: svn path=/head/; revision=25551
* Make a lot of include-files self-contained. I excluded the patches changingEivind Eklund1997-05-071-2/+2
| | | | | | | | | | | int's to gid_t and uid_t - should I commit these, too? Closes PR misc/2625. Submitted by: Julian Assange <proff@iq.org> Notes: svn path=/head/; revision=25520
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-232-2/+2
| | | | Notes: svn path=/head/; revision=23037
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-142-2/+2
| | | | | | | | | | | 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
* Update 4.9.4-P1 -> 4.9.5-P1Peter Wemm1996-12-302-42/+110
| | | | | | | Included here are definitions for the DNSSEC key management stuff. Notes: svn path=/head/; revision=21056
* Update to more current reality.Poul-Henning Kamp1996-11-281-10/+30
| | | | | | | | Reviewed by: phk Submitted by: Robin Carey <robin@mailgate.dtc.rankxerox.co.uk> Notes: svn path=/head/; revision=20003
* Hand merge in the bind-4.9.4-P1 resolver updates.Peter Wemm1996-08-292-3/+10
| | | | Notes: svn path=/head/; revision=17902
* Add an independent implementation of addr2ascii(3) and ascii2addr(3)Garrett Wollman1996-06-131-1/+6
| | | | | | | following the API of the INRIA IPv6 implementation. Notes: svn path=/head/; revision=16352
* Fix a bunch of spelling errors in the comment fieldsMike Pritchard1996-01-302-4/+4
| | | | | | | of a bunch of system include files. Notes: svn path=/head/; revision=13771
* Update resolver include files to bind-4.9.3-rel levelPeter Wemm1996-01-071-0/+1
| | | | Notes: svn path=/head/; revision=13297
* Update the resolver include files to bind-4.9.3-beta24 level (from beta9p1)Peter Wemm1995-08-201-22/+29
| | | | | | | | | | Note: this was done by selective patching from diffs by hand, in order to not conflict with the 4.4BSD base code. Beta9 was done the same way. Obtained from: Paul Vixie <paul@vix.com> Notes: svn path=/head/; revision=10132
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8858
* get* rework and new bind codePaul Traina1994-09-251-148/+136
| | | | Notes: svn path=/head/; revision=3070
* Changed idempotent strings to reflect directory area.Paul Richards1994-08-215-10/+10
| | | | | | | | Reviewed by: Submitted by: Notes: svn path=/head/; revision=2163
* BSD 4.4 Lite Include SourcesRodney W. Grimes1994-05-245-0/+860
Notes: svn path=/head/; revision=1539