summaryrefslogtreecommitdiffstats
path: root/include/arpa/inet.h
Commit message (Collapse)AuthorAgeFilesLines
* 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-161-5/+1
|
* Namespace: inet_ntoa_r() is a BSD extension.das2009-03-141-1/+1
|
* 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)
* 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-031-2/+4
| | | | MFC after: 2 weeks
* Update the resolver in libc to BIND9's one.ume2006-03-211-23/+33
| | | | | | | | | | | | | | | | | | | | | | 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)
* 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.
* 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-231-20/+20
| | | | | | # 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
* 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
* 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
* 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
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Update nameserver interface to bind-8.1.2 levels. We do not use IRS (yet?)peter1998-06-111-3/+21
| | | | | | | | 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
* 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>
* Revert $FreeBSD$ to $Id$peter1997-02-231-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Update 4.9.4-P1 -> 4.9.5-P1peter1996-12-301-6/+28
| | | | Included here are definitions for the DNSSEC key management stuff.
* Hand merge in the bind-4.9.4-P1 resolver updates.peter1996-08-291-1/+6
|
* Add an independent implementation of addr2ascii(3) and ascii2addr(3)wollman1996-06-131-1/+6
| | | | following the API of the INRIA IPv6 implementation.
* Changed idempotent strings to reflect directory area.paul1994-08-211-2/+2
| | | | | Reviewed by: Submitted by:
* BSD 4.4 Lite Include Sourcesrgrimes1994-05-241-0/+53
OpenPOWER on IntegriCloud