summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-281-14/+0
| | | | Submitted by: keramida
* Document that <netinet/in.h> can also provide prototypes. Changemike2002-05-111-2/+6
| | | | wording related to standards conformance.
* just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD.suz2002-04-196-11/+22
| | | | | | | (based on freebsd4-snap-20020128) Reviewed by: ume MFC after: 1 week
* Add awareness of an IPv6.ume2002-04-151-7/+20
| | | | MFC after: 1 week
* Quoting log message for OpenBSD rev 1.7:nectar2002-04-151-0/+28
| | | | | | ``Tack on MagniComp (BSD) license since this originally came from rdist.'' Obtained from: OpenBSD
* Fix style of ether_ntoa().ru2002-04-081-3/+3
|
* Polish previous revision.ru2002-04-061-1/+1
|
* Fix ether_ntoa() to generate the %02x format people expect, instead of %x,dillon2002-04-061-2/+3
| | | | | | for the ethernet address. MFC after: 1 day
* When _kevent() returns with errno = EINTR and timeout is notume2002-04-011-4/+3
| | | | | | exceeded, it should be falldown to next_ns. MFC after: 1 week
* Fix the style of the SCM ID's.obrien2002-03-221-0/+2
| | | | I believe have made all of libc .h's as consistent as possible.
* Fix the style of the SCM ID's.obrien2002-03-2254-107/+116
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove multi-line __P() usage.obrien2002-03-227-35/+30
|
* Remove __P() usage.obrien2002-03-2112-39/+39
|
* Remove 'register' keyword.obrien2002-03-2129-84/+98
|
* Remove trailing characters from #endif.obrien2002-03-151-3/+0
| | | | Actually this #endif is not needed, so remove leading characters also.
* Add a carriage return to each function declaration, and make use of ID tageric2002-03-061-8/+12
| | | | | | macros. MFC after: 1 day
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-183-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* balance parens.alfred2002-02-051-1/+1
| | | | Submitted by: mbr
* Fix cc -Wall, fix rcsid warnings, add missing prototypes,alfred2002-02-051-0/+4
| | | | | | | | | change prototypes to be the same as in the original sun tirpc code. Remove ()P macro in a file where the mayority had ()P already removed. Add them if the mayority use ()P macros. Submitted by: mbr Requested by: bde
* Return ENONAME if getaddrinfo() is called with AI_NUMERICHOSTroam2002-02-011-1/+1
| | | | | | | | | and the hostname given is not numeric. PR: 34390 Submitted by: Serge van den Boom <svdb@stack.nl> Approved by: silence from -net MFC after: 1 month
* yp(4) -> yp(8).ru2002-01-143-4/+4
| | | | PR: docs/30797
* - Make it possible to turn on RES_INSECURE[12] with /etc/resolv.conf.ume2001-12-262-1/+13
| | | | | | | | - Don't connect datagram socket if RES_INSECURE1. - Needed to implement IPv6 anycast UDP DNS queries as documented in <draft-ietf-ipngwg-dns-discovery-03.txt>. Obtained from: KAME
* Start using .St macro for POSIX.1-2001.ru2001-12-081-2/+2
|
* o Stop abusing MD headers with non-MD types.mike2001-12-012-9/+14
| | | | | | | | | | | | | | | 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
* Duh. Back out most of my previous commit. It was mostly covered in thecjc2001-11-291-9/+1
| | | | | | | | | STANDARDS section of the page. Add one remark there about inet_pton(3) only understanding decimal values (in contrast to inet_aton(3) and friends who are happy with 0ac.020.25 for 172.16.0.25). Caught by: ru MFC after: 2 days
* After the long explanaition of how the inet_* functions interpretcjc2001-11-291-0/+8
| | | | | | | Internet addresses, point out that inet_pton(3) only understands dotted quads with decimal values. MFC after: 2 days
* Fixed namespace pollution related to `err' in libc in the same way as forbde2001-11-112-3/+4
| | | | | | | | `warn'. Now a whole 2 members of the err() family don't cause pollution. This fixes world breakage in awk for NOSHARED worlds. contrib/awk/msg.c has had its own version of err() for a long time, but this somehow didn't cause problems until the update to awk-3.1.0.
* - Put missing prototype for rcmd() in <unistd.h>.ru2001-11-092-58/+66
| | | | | | | - Clean up the manpage. - style(9) rcmdsh.c. Committed from: BSDCon/EU 2k+1 terminal room
* Don't ignore unknown characters. The previous code treated a line like:fenner2001-11-072-3/+5
| | | | | | | | | | | | hosts:!!!!!!!!@@@@@$%^&*()()*$(files{}{}|||++!)(dns exactly the same as: hosts: files dns Recover from parse errors by looking for the end of a line; this allows entries without errors to still be parsed even if there is an erroneous entry earlier in the file.
* Allow users to specify a command to use as remote command instead ofimp2001-10-234-6/+257
| | | | | | | | | | using rcmd directly. This has been in my tree for a long time, but we may need to sync with OpenBSD before MFC. Obtained from: openbsd PR: 15830 MFC after: 2 months
* Use the new SIOCGIFINDEX ioctl to efficiently map a name to an index.jlemon2001-10-171-2/+22
| | | | | If the syscall fails, fall back on the old method as a compatability measure.
* getnetbyaddr() should be serviced by the "networks" database.ru2001-10-101-1/+1
|
* Don't mangle vendor ids to put them in __RCSID. Just ifdef all vendormike2001-10-091-1/+6
| | | | | | id cruft. Submitted by: bde
* Include <string.h> to prototype strcpy(3). While I'm here, make usemike2001-10-041-3/+4
| | | | | | of the new RCSID macros. MFC after: 3 days
* - cope with sa_len < sizeof(struct sockaddr).ume2001-10-021-35/+44
| | | | | | | | From: Patrik Lindergren <patrik@datacom.nu> - delint (pointer cast issue). from netbsd-current Obtained from: KAME MFC after: 1 week
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-0122-48/+48
|
* Add manpage for inet_net_ntop(3) and inet_net_pton(3).ru2001-08-313-1/+162
| | | | Obtained from: NetBSD
* Use ``.Rv -std'' wherever possible.ru2001-08-311-4/+1
| | | | Submitted by: yar
* o Remove some GCCisms in src/powerpc/include/endian.h.mike2001-08-301-9/+14
| | | | | | | | | | | | | | | | | | | | o Unify <machine/endian.h>'s across all architectures. o Make bswapXX() functions use a different spelling of u_int16_t and friends to reduce namespace pollution. The bswapXX() functions don't actually exist, but we'll probably import these at some point. Atleast one driver (if_de) depends on bswapXX() for big endian cases. o Deprecate byteorder(3) prototypes from <sys/types.h>, these are 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>. o Change byteorder(3) prototypes to use standards compliant uint32_t (spelled __uint32_t to reduce namespace pollution). o Document new preferred headers and standards compliance. Discussed with: bde PR: 29946 Reviewed by: bmilekic
* Mark some functions as __printflike() and/or taking const char * argumentskris2001-08-201-0/+4
| | | | | | instead of char *. MFC after: 2 weeks
* mdoc(7) police: collapse multiple spaces.ru2001-08-171-1/+1
|
* mdoc(7) police: s;BSD/OS;.Bsx; where appropriate.ru2001-08-131-1/+2
|
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-133-6/+6
|
* Fill _res.sort_list with harmless entry. sortlist for IPv6/IPv4ume2001-08-111-0/+3
| | | | | | | | | is stored in _res_ext.sort_list, and sortlist for IPv4 is stored in _res.sort_list for backward compatibility. However, both sort_list's are maintaind by just one index _res.nsort. So, when IPv6 address is specified to sortlist, empty entry was created in _res.sort_list. It broke sortlist facility of gethostbyname(). Discussed on users@jp.ipv6.org.
* mdoc(7) police: join split punctuation to macro calls.ru2001-08-101-1/+1
|
* Urge the reader to start using getaddrinfo(3) and getnameinfo(3)ru2001-08-081-0/+14
| | | | | | | protocol-independant functions that don't use static memory area. Suggested by: nik Liked by: ume, brian
* mdoc(7) police:ru2001-08-078-56/+41
| | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
* Only pull in the MD files if they exist. This allows for progressivemp2001-07-311-0/+2
| | | | implementation and compilation when bringing up a new architecture.
* Oops, commit the version which actually workskris2001-07-161-6/+12
| | | | | Obtained from: NetBSD MFC After: 1 week
* Avoid a compile-time format string warningkris2001-07-161-10/+13
| | | | | Obtained from: NetBSD MFC After: 1 week
OpenPOWER on IntegriCloud