summaryrefslogtreecommitdiffstats
path: root/include/arpa
Commit message (Collapse)AuthorAgeFilesLines
* Allow certain headers to be included more easily.ed2013-05-211-0/+2
| | | | Spotted by: http://hacks.owlfolio.org/header-survey/
* MK_* variable should be compared to "no" not "NO".brooks2013-01-251-1/+1
| | | | Submitted by: "b.f." <bf1783@googlemail.com>
* Don't install telnet.h if it will be installed by libtelnet.brooks2013-01-241-1/+6
|
* Spelling fixes for include/uqs2012-01-071-2/+2
|
* o addr2ascii(3) was removed ages ago. Fix the comment.maxim2010-07-061-1/+1
| | | | | | PR: docs/148383 Submitted by: pluknet MFC after: 1 week
* Remove clause 3 from Berkeley copyrights. Add a few $FreeBSD$'s.imp2010-02-166-30/+8
|
* Namespace: inet_ntoa_r() is a BSD extension.das2009-03-141-1/+1
|
* Merge the resolver part of BIND 9.4.3 into HEAD.ume2008-12-141-2/+3
| | | | | | | | | | It includes the following fix: 2426. [bug] libbind: inet_net_pton() can sometimes return the wrong value if excessively large netmasks are supplied. [RT #18512] Reported by: Maksymilian Arciemowicz <cxib__at__securityreason.com>
* Fix TELOPT(opt) when opt > TELOPT_TN3270E.antoine2008-09-131-2/+2
| | | | | | PR: 127194 Submitted by: Joost Bekkers MFC after: 1 month
* Remove old prototypes for addr2ascii() and ascii2addr(), functions which nobms2007-08-241-2/+0
| | | | | | | longer exist in libc. Requested by: Craig Rodrigues Approved by: re (kensmith)
* declare struct tftphdr and embedded union as beeing packed, which isticso2007-08-011-2/+2
| | | | | | | | required for arm. Tested on: arm, i386, amd64 Approved by: re (rwatson) MFC after: 1 week
* Require users to provide a length information for inet_ntoa_r,delphij2007-06-141-1/+1
| | | | | | this is common on other platforms. Reported by: pointyhat via kris
* Add inet_ntoa_r, a reentrant version of inet_ntoa. This isdelphij2007-06-111-0/+2
| | | | | | available on a lot of platforms, as well as libkern for years. Submitted by: "MQ"
* Merge BIND 9.4.1 into main chunk.ume2007-06-033-202/+203
| | | | MFC after: 2 weeks
* Merge BIND9 9.3.3 into main chunk.ume2006-12-151-1/+1
| | | | | Obtained from: ISC MFC after: 1 week
* Upgrade res_update(3) and the friends to BIND9's one excluding TSIGume2006-05-211-0/+4
| | | | | | support. X-MFC after: never
* Update the resolver in libc to BIND9's one.ume2006-03-213-97/+245
| | | | | | | | | | | | | | | | | | | | | | Since, res_sendsigned(3) and the friends use MD5 functions, it is hard to include them without having MD5 functions in libc. So, res_sendsigned(3) is not merged into libc. Since, res_update(3) in BIND9 is not binary compatible with our res_update(3), res_update(3) is leaved as is, except some necessary modifications. The res_update(3) and the friends are not essential part of the resolver. They are not defined in resolv.h but defined in res_update.h separately in BIND9. Further, they are not called from our tree. So, I hide them from our resolv.h, but leave them only for binary backward compatibility (perhaps, no one calls them). Since, struct __res_state_ext is not exposed in BIND9, I hide it from our resolv.h. And, global variable _res_ext is removed. It breaks binary backward compatibility. But, since it is not used from outside of our libc, I think it is safe. Reviewed by: arch@ (no objection)
* ns_name_skip was not prefixed by `__'.ume2006-03-091-0/+1
| | | | Obtained from: BIND9
* Start the dreaded NOFOO -> NO_FOO conversion.ru2004-12-211-1/+1
| | | | OK'ed by: core
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* MFCrypto: update RFC assigned telnet options (r1.9)billf2003-01-181-3/+8
|
* o Merge <machine/ansi.h> and <machine/types.h> into a new headermike2002-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
* Change a POSIX conditional to use the new __BSD_VISIBLE macro.mike2002-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)
* -Add the restrict required by IEEE Std 1003.1-2001 in formrobert2002-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.
* Prepend BIG_ENDIAN, BYTE_ORDER, LITTLE_ENDIAN, and PDP_ENDIAN with anmike2002-05-281-6/+6
| | | | | underscore. This is the preferred form. Also fix a preprocessor syntax error in an error-detection section.
* Added new bsd.incs.mk which handles installing of header filesru2002-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".
* Be more strict about exposing BSD-specific functions when a standardmike2002-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.
* o Implement <sys/_types.h>, a new header for storing types that aremike2002-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
* Breath deep and take __P out of the system include files.imp2002-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.
* o Add INET_ADDRSTRLEN and INET6_ADDRSTRLEN defines to <arpa/inet.h>mike2002-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>.
* o Don't require long long support in bswap64() functions.mike2002-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
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-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
* Merge from master (crypto) telnet. WARNS fixes for alpha.markm2001-12-031-6/+6
|
* Add a missing underscore.mike2001-12-011-1/+1
| | | | Submitted by: fenner
* o Stop abusing MD headers with non-MD types.mike2001-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
* Diff-reduce these two.markm2001-10-271-2/+3
| | | | | | | Really, one of them needs to disappear. I'll figure out which later. Reported by: bde
* RFC2349 (http://www.hypermail.org/rfcs/rfc2349.html) adds supportobrien2001-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>
* style(9) the structure definitions.obrien2001-09-051-1/+2
|
* Revert previous delta; <arpa/inet.h> isn't quite ready to stop includingmike2001-08-311-16/+1
| | | | <sys/types.h>.
* o Deprecate byteorder(3) prototypes from <sys/types.h>, these aremike2001-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
* Implement EDNS0 support, as EDNS0 support will be made mandatory forume2001-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
* IPv4 address is not unsigned int. This change introduces in_addr_t.ume2001-03-231-6/+6
| | | | | | | PR: 9982 Adviced by: des Reviewed by: -alpha and -net (no objection) Obtained from: OpenBSD
* Fix typo: compatability -> compatibility.asmodai2001-02-061-1/+2
| | | | | | Compatability is not an existing english word. Add $FreeBSD$.
* $Id$ -> $FreeBSD$peter1999-08-273-3/+3
|
* Change an internal variable from "class" to "ns_class" for C++'s benefit.peter1999-06-041-3/+3
| | | | | | Apparently BIND-8.2.1 uses ns_class. Submitted by: John Plevyak <jplevyak@inktomi.com>
* Update nameserver interface to bind-8.1.2 levels. We do not use IRS (yet?)peter1998-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
* Declare the various 2-byte values in TFTP as being `unsigned short'.joerg1997-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
* Fix typo: "send" -> "end"fenner1997-08-111-1/+1
| | | | | PR: bin/3474 Submitted by: graphix@iastate.edu (Kent Vander Velden)
* Back out all of yesterdays include file changes.eivind1997-05-071-2/+2
|
* Make a lot of include-files self-contained. I excluded the patches changingeivind1997-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>
OpenPOWER on IntegriCloud