summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Put each function argument on its own line to keep lines shorterrobert2002-08-151-1/+6
| | | | than 80 columns.
* -Add the restrict required by IEEE Std 1003.1-2001 in formrobert2002-08-143-25/+9
| | | | | | | 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.
* mdoc(7) police: laundry.ru2002-08-091-22/+37
|
* Remove an #include <syslog.h>. It's already included conditionallymux2002-08-021-1/+0
| | | | | | above, as it should be. Submitted by: Olivier Houchard <cognet@ci0.org>
* sysctl(NET_RT_IFLIST) up to several (currently 5) times.ume2002-07-251-8/+29
| | | | | | | | This will make the behavior robuster if many addresses are added after the size estimation of storage at the first sysctl. Reviewed by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> MFC after: 1 week
* - ntohs() returns unsigned value.ume2002-07-241-59/+56
| | | | | | | | | | | | | - use strlcpy. - snprintf can return negative value, so cope with it. - tweak interface index on interface locals (ff01::/16). - removed unused macros. - removed a macro that uses only once (in a trivial context). - explicitly say goodbye to ENI_xxx. - constify struct afd. Obtained from: KAME MFC after: 1 week
* Use BSDi derived if_nametoindex(), if_indextoname(), if_nameindex()ume2002-07-156-328/+403
| | | | | | | and if_freenameindex(). Obtained from: KAME MFC after: 2 weeks
* Fix syntax error which occurred when LIBC_SCCS was defined.robert2002-07-071-1/+1
|
* Make NI_WITHSCOPEID a default (always on), to synchronizeume2002-07-021-30/+20
| | | | | | | with recent 2553bis. Obtained from: KAME MFC after: 3 weeks
* Remove two lines that were cvs merged that shouldn't have been. Thisimp2002-06-261-2/+0
| | | | | | fixes the build. Reported by: dillon.
* Remove two stray lines that snuck in the cvs mergeimp2002-06-262-2/+0
|
* Initialize a pointer that was left uninitialized with the previousnectar2002-06-261-0/+1
| | | | commit.
* Include more robust checking of end of buffer that more completelyimp2002-06-264-52/+32
| | | | plugs the hole.
* Don't allow buffer overflow here either.imp2002-06-261-1/+3
|
* Fix a minor last, minute issue that came in after I committed.imp2002-06-261-1/+1
| | | | Noticed by: nectar
* Avoid remote buffer overflow on hostbuf[].imp2002-06-262-1/+4
| | | | Submitted by: joost Pol <joost@pine.nl>
* Correct FreeBSD release of first appearance in the HISTORY sectionsheldonh2002-06-061-1/+1
| | | | (5.0 -> 4.6).
* 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
OpenPOWER on IntegriCloud