summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* . fix .Dt macro argumentphantom2000-05-121-2/+2
| | | | . spell inet6_rthdr_reverse correctly
* Supply only one author name per instance of %A, as per mdoc.samples(7).sheldonh2000-05-101-2/+5
| | | | | PR: 18465 Submitted by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
* correct possible security issue(s) in name resolution, due to use ofitojun2000-05-101-177/+391
| | | | | | | pre-4.9.7 BIND resolver code. ftp://ftp.kame.net/pub/mail-list/snap-users/2348 for details. Reviewed by: ume
* Use `Er' variable to define first column width in ERRORS section.phantom2000-05-061-1/+1
|
* Introduce ".Lb" macro to libc manpages.phantom2000-04-2119-0/+38
| | | | More libraries manpages updates following.
* Change getaddrinfo() resolve ordershin2000-04-202-75/+317
| | | | | | | | | | | from all AAAA trial, then all A trial to try AAAA and A for each trial TODO: more fix for the case where IPv4 mapped IPv6 addr is disabled Reviewed by: ume
* Decrement the timeout being passed to poll() if poll was interrupted forjlemon2000-03-261-5/+22
| | | | | | | some reason. This will prevent an infinite loop if (say) a sigalarm is being scheduled at a more frequent interval than the poll timeout. PR: 2191, 8847, 10553
* Fixed missing #include of <sys/types.h> in synopsis.bde2000-03-231-2/+3
| | | | | Fixed spelling error in prototype for inet_option_space(). Fixed syntax error in prototype for inet6_option_alloc().
* Fixed missing #include of <sys/types.h> in synopsis.bde2000-03-231-0/+1
|
* Back out that last commit, it may be insecure (pointed out by Warnerbsd2000-03-161-1/+1
| | | | Losh).
* Slight adjustment to __ivaliduser() - don't ignore the last line inbsd2000-03-161-1/+1
| | | | the .rhosts file just because there is no ending linefeed.
* Fix uninitialized variable.jlemon2000-03-151-1/+1
| | | | Submitted by: tanimura
* Merge from NetBSD. Addition of inet_ntop() and inet_pton() description.shin2000-03-122-2/+60
| | | | | | Specified by: Robert Muir <rmuir@looksharp.net> Obtained from: NetBSD
* Cosmetic fix. Re-order MLINKS for if_indextoname.3 and inet.3 as alphabeticalshin2000-03-121-2/+2
| | | | order.
* Correct MLINKS contents for rcmd.3, because it is obsolete due toshin2000-03-121-3/+4
| | | | | | | recent changes to rcmd.3. links to iruserok_af.3, ruserok_af.3 are removed. link to iruserok_sa.3 is added.
* Import from KAME. Advanced API related function descriptions.shin2000-03-123-1/+790
| | | | Obtained from: KAME project
* Add in IPV4 NIS support.jlemon2000-03-091-0/+39
| | | | | PR: 17290 (but not the same patch) Approved by: jkh
* More grammer, wording, and mdoc fixes.shin2000-03-091-26/+20
| | | | | Submitted by: bde Reviewed by: sheldonh
* CMSG_XXX macros alignment fixes to follow RFC2292.shin2000-03-031-6/+18
| | | | | | | Approved by: jkh Submitted by: Partly from tech@openbsd Reviewed by: itojun
* -Reflect function name change.shin2000-03-021-36/+83
| | | | | | | | | | | | | | -Added more description. -Many grammer fix. -Fix hard sentence break. -Many other man style fix. Thanks for bde finding out the problem. Thanks for sheldon for the patient and thorough review. :-) Submitted by: bde Reviewed by: sheldonh
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-022-5/+10
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Change IPv6 scoped addr format again based on recent standard discussion.shin2000-02-192-9/+6
| | | | | | | | | Sorry for the flapping, but no change will be done for 4.0 anymore. Official standard will be published around April or later. If different format would be adopted at that time, then support for the new format will be added to the succeeding FreeBSD 4.x. Approved by: jkh
* Fix coredump in gethostbyaddr() when the returned answer is too large tofenner2000-02-161-0/+4
| | | | | | | | | fit in the static buffer. This fix causes it to look like there is no data available, which is also wrong but is better than dumping core. PR: bin/10344 Reviewed by: billf Approved by: jkh
* Add more dual stack consideration.shin2000-02-101-1/+5
| | | | | | | | -Should not error return when rresvport_af() failed for one of dest addrs resolved by getaddrinfo(). Should retry until all dest addr fail. Approved by: jkh
* Let getaddrinfo() and related functions supports traditional IPv4 formatshin2000-02-102-4/+10
| | | | | | | | | | | | | | | | | | | | | | | (shortend format, etc) Current KAME getaddrinfo() supports only d.d.d.d format IPv4 addr. But traditionally inet_aton() and etc support other formats. (shortend format and octal/deciaml/hex format) Aboud this, -As far as the discussion on freebsd-current, many people think traditional format should also be supported by getaddrinfo(). -X/Open spec requires getaddrinfo() also support those traditional IPv4 format. -RFC2553 say nothing about it. -As the result of confirmation in ietf/ipng list, there is no clear concensus yet, and the reply was, "RFC2553 update and X/Open spec will be in sync" So takeing these conditions into account, I think getaddrinfo() should also support traditional IPv4 format. Specified by: Marc Schneiders <marc@oldserver.demon.nl> Approved by: jkh
* IPv6 scoped addr format is changed as recent KAME change.shin2000-02-092-6/+16
| | | | | | | | | | | | | | KAME scoped addr format is changed recently. before: addr@scope now: scope%addr Because the end of IPv6 numeric addr is tend to be truncated in `netstat -rn ` output, so placing scope part at starting of addr will be convenient. Approved by: jkh Obtained from: KAME project
* sync iruserok() extension API with other BSDsshin2000-02-011-28/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of rcmd related function is need to be updated to support IPv6. Some of them are already updated as standard document. But there is also several de-facto functions and they are not listed in standard documents. They are, iruserok() (used by rlogind, rshd) ruserok() (used by kerberos, etc) KAME package updated those functions in original way. iruserok_af() ruserok_af() But recently there was discussion on IETF IPng mailing list about how to sync those API, and it is decided, -Those function is not standard and not documented. -But let BSDs sync their API as de-facto. And after some discussion, it is announced that -add update to iruserok() as iruserok_sa() -no ruserok() API change(it is only updated internaly) So I sync those API before 4.0 is released. The changes are, -prototype changes -ruserok() internal update (use iruserok_sa() inside) -removal of ruserok_af() -change iruserok_af() as static functioin, and also prefix the name with __. -add iruserok_sa() (Just call __iruserok_af() inside) -adding flag AI_ALL to getipnodebyaddr() called from __icheckhost(). This is necessary to support IPv4 communication via AF_INET6 socket could be correctly authenticated via iruserok_sa() -irusreok_af() call is replaced to iruserok_sa() call in rlogind, and rshd. Approved by: jkh
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),jasone2000-01-274-31/+36
| | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen
* Allow reverse lookup for loopback addr.shin2000-01-271-1/+1
| | | | | | This is merge from recent KAME fix to be more compliant with RFC2553. Obtained from: KAME project
* Removed 3rd arg from bindresvport_sa() call, because the 3rd arg have beenshin2000-01-261-2/+1
| | | | | | already removed. Specified by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
* bindresvport related changesshin2000-01-261-2/+2
| | | | | | | | | | -changed bindresvport2 to bindresvport_sa -merged the man into bindresvport.3 All discussion between Jean-Luc Richier <Jean-Luc.Richier@imag.fr>, Theo de Raadt <deraadt@cvs.openbsd.org>, itojun, is reflected to this code. (Actually Theo de Raadt write the code simultaneously as the discussion change.)
* Fix getaddrinfo() behaviour to be more compliant with RFC2553. Patches areshin2000-01-261-116/+17
| | | | | | | | | | | | obtained from itojun. -don't filter address families which are not supported by system at FQDN resolving. -don't do reverse lookup I think I checked all lib and tools which use getaddrinfo() if this change affect them. Obtained from: KAME project
* several tcp apps IPv6 updateshin2000-01-253-5/+33
| | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* libc rcmd update for IPv6.shin2000-01-132-70/+232
| | | | | | | | A new function bindresvport2(), AF independent version of bindresvport() is also added. Reviewed by: sumikawa Obtained from: KAME project
* added IPv6 unspecified addr check for getipnodebyaddr.shin2000-01-131-0/+2
|
* added IPv4 mapped IPv6 addr consideration for getaddrinfo() reverse lookup caseshin2000-01-131-1/+4
|
* Add three-tier symbol naming in support of POSIX thread cancellationjasone2000-01-124-33/+33
| | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read().
* Fixed missing include in synopsis.bde2000-01-052-4/+4
| | | | | Use long lines instead of lines split with backslash-newline in synopsis. My synopsis checker doesn't understand backslash-newline.
* Fixed missing include in synopsis.bde2000-01-051-0/+1
|
* Suppress vast quantities of unneeded warnings spewed by libc's gethostbydnsrwatson1999-12-281-3/+4
| | | | | | | on encountering a real-world SIG record during a lookup of another type. PR: bin/7352 Reviewed by: peter, eivind
* Small bug fix and improvementsshin1999-12-281-0/+7
| | | | | | | | (1)added error check of if_nameindex() return value at getaddrinfo(). (2)print out more detailed information when getaddrinfo() error value is EAI_SYSTEM.(in this case system error num is kept in errno) (1) is Discovered by: jinmei@kame.net in KAME environment.
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.shin1999-12-288-4/+3657
| | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Make this compile with -Wall -Werrorpeter1999-12-271-1/+2
|
* Fixed missing includes in synopsis.bde1999-12-231-0/+2
|
* KAME 4th patchshin1999-12-166-4/+1088
| | | | | | | | IPv6 specific library functions addition. (getnameinfo(), getaddrinfo(), and IPv6 transport support is not yet) Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Add unsigned char cast to isalphaache1999-11-042-2/+2
|
* Add unsigned char cast to is[x]digitache1999-11-042-5/+5
|
* unsigned char cast to ctype macrosache1999-11-041-1/+3
|
* Add unsigned char cast to ctype macros argache1999-11-045-37/+39
|
* Fix a really lame buglet which broke with IPs of 34green1999-11-031-1/+1
| | | | (ERANGE...)
OpenPOWER on IntegriCloud