summaryrefslogtreecommitdiff
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Previous commit broke the case of chained CNAME entries. Instead handleKris Kennaway2000-07-031-6/+18
| | | | | | | | | | the bogus case by being stricter about errors. Submitted by: itojun Obtained from: KAME Notes: svn path=/head/; revision=62428
* Fix a nasty bug which would leave the struct hostent incompletely filled outKris Kennaway2000-07-031-1/+1
| | | | | | | | | | | when parsing certain DNS records during a reverse address resolution. Thus when code tries to examine the returned host name, it dereferences a null pointer :-( Problem noticed by: ps Notes: svn path=/head/; revision=62427
* Don't call _getipnodebyname_multi(). It fixes the problem thatHajimu UMEMOTO2000-06-201-190/+1216
| | | | | | | | | | | | getaddrinfo() accidentally returns IPv4 mapped IPv6 address instead of native IPv4 address. Now, getaddinfo() is scoped address ready. You can put scoped address within /etc/hosts. Obtained from: KAME Project. Notes: svn path=/head/; revision=61877
* Re-commit DNS IPv6 transport support with fixes for IPv4 onlyHajimu UMEMOTO2000-06-192-59/+153
| | | | | | | | | kernel and compatibility issue. Obtained from: KAME Project Notes: svn path=/head/; revision=61824
* Backout my previous commit.Hajimu UMEMOTO2000-06-142-110/+56
| | | | | | | | | Cannot resolve any host on IPv4 only kernel. Reported by: ache Notes: svn path=/head/; revision=61697
* DNS IPv6 transport support.Hajimu UMEMOTO2000-06-112-56/+110
| | | | | | | | | It is nessesary for IPv6 only life. Obtained from: KAME Notes: svn path=/head/; revision=61556
* Fix an mdoc-o, and english.Tim Vanderhoek2000-05-311-6/+6
| | | | Notes: svn path=/head/; revision=61109
* Back out the previous change to the queue(3) interface.Jake Burkholder2000-05-261-1/+1
| | | | | | | | | It was not discussed and should probably not happen. Requested by: msmith and others Notes: svn path=/head/; revision=60938
* Change the way that the queue(3) structures are declared; don't assume thatJake Burkholder2000-05-231-1/+1
| | | | | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd Notes: svn path=/head/; revision=60833
* . fix .Dt macro argumentAlexey Zelkin2000-05-121-2/+2
| | | | | | | . spell inet6_rthdr_reverse correctly Notes: svn path=/head/; revision=60465
* Supply only one author name per instance of %A, as per mdoc.samples(7).Sheldon Hearn2000-05-101-2/+5
| | | | | | | | PR: 18465 Submitted by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp> Notes: svn path=/head/; revision=60311
* correct possible security issue(s) in name resolution, due to use ofJun-ichiro itojun Hagino2000-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 Notes: svn path=/head/; revision=60296
* Use `Er' variable to define first column width in ERRORS section.Alexey Zelkin2000-05-061-1/+1
| | | | Notes: svn path=/head/; revision=60078
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-2119-0/+38
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* Change getaddrinfo() resolve orderYoshinobu Inoue2000-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 Notes: svn path=/head/; revision=59411
* Decrement the timeout being passed to poll() if poll was interrupted forJonathan Lemon2000-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 Notes: svn path=/head/; revision=58637
* Fixed missing #include of <sys/types.h> in synopsis.Bruce Evans2000-03-231-2/+3
| | | | | | | | Fixed spelling error in prototype for inet_option_space(). Fixed syntax error in prototype for inet6_option_alloc(). Notes: svn path=/head/; revision=58490
* Fixed missing #include of <sys/types.h> in synopsis.Bruce Evans2000-03-231-0/+1
| | | | Notes: svn path=/head/; revision=58488
* Back out that last commit, it may be insecure (pointed out by WarnerBrian S. Dean2000-03-161-1/+1
| | | | | | | Losh). Notes: svn path=/head/; revision=58154
* Slight adjustment to __ivaliduser() - don't ignore the last line inBrian S. Dean2000-03-161-1/+1
| | | | | | | the .rhosts file just because there is no ending linefeed. Notes: svn path=/head/; revision=58152
* Fix uninitialized variable.Jonathan Lemon2000-03-151-1/+1
| | | | | | | Submitted by: tanimura Notes: svn path=/head/; revision=58096
* Merge from NetBSD. Addition of inet_ntop() and inet_pton() description.Yoshinobu Inoue2000-03-122-2/+60
| | | | | | | | | Specified by: Robert Muir <rmuir@looksharp.net> Obtained from: NetBSD Notes: svn path=/head/; revision=57940
* Cosmetic fix. Re-order MLINKS for if_indextoname.3 and inet.3 as alphabeticalYoshinobu Inoue2000-03-121-2/+2
| | | | | | | order. Notes: svn path=/head/; revision=57939
* Correct MLINKS contents for rcmd.3, because it is obsolete due toYoshinobu Inoue2000-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. Notes: svn path=/head/; revision=57937
* Import from KAME. Advanced API related function descriptions.Yoshinobu Inoue2000-03-123-1/+790
| | | | | | | Obtained from: KAME project Notes: svn path=/head/; revision=57936
* Add in IPV4 NIS support.Jonathan Lemon2000-03-091-0/+39
| | | | | | | | PR: 17290 (but not the same patch) Approved by: jkh Notes: svn path=/head/; revision=57878
* More grammer, wording, and mdoc fixes.Yoshinobu Inoue2000-03-091-26/+20
| | | | | | | | Submitted by: bde Reviewed by: sheldonh Notes: svn path=/head/; revision=57866
* CMSG_XXX macros alignment fixes to follow RFC2292.Yoshinobu Inoue2000-03-031-6/+18
| | | | | | | | | | Approved by: jkh Submitted by: Partly from tech@openbsd Reviewed by: itojun Notes: svn path=/head/; revision=57719
* -Reflect function name change.Yoshinobu Inoue2000-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 Notes: svn path=/head/; revision=57699
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-022-5/+10
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* Change IPv6 scoped addr format again based on recent standard discussion.Yoshinobu Inoue2000-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 Notes: svn path=/head/; revision=57340
* Fix coredump in gethostbyaddr() when the returned answer is too large toBill Fenner2000-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 Notes: svn path=/head/; revision=57252
* Add more dual stack consideration.Yoshinobu Inoue2000-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 Notes: svn path=/head/; revision=57123
* Let getaddrinfo() and related functions supports traditional IPv4 formatYoshinobu Inoue2000-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 Notes: svn path=/head/; revision=57107
* IPv6 scoped addr format is changed as recent KAME change.Yoshinobu Inoue2000-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 Notes: svn path=/head/; revision=57069
* sync iruserok() extension API with other BSDsYoshinobu Inoue2000-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 Notes: svn path=/head/; revision=56939
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-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 Notes: svn path=/head/; revision=56698
* Allow reverse lookup for loopback addr.Yoshinobu Inoue2000-01-271-1/+1
| | | | | | | | | This is merge from recent KAME fix to be more compliant with RFC2553. Obtained from: KAME project Notes: svn path=/head/; revision=56671
* Removed 3rd arg from bindresvport_sa() call, because the 3rd arg have beenYoshinobu Inoue2000-01-261-2/+1
| | | | | | | | | already removed. Specified by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de> Notes: svn path=/head/; revision=56636
* bindresvport related changesYoshinobu Inoue2000-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.) Notes: svn path=/head/; revision=56629
* Fix getaddrinfo() behaviour to be more compliant with RFC2553. Patches areYoshinobu Inoue2000-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 Notes: svn path=/head/; revision=56627
* several tcp apps IPv6 updateYoshinobu Inoue2000-01-253-5/+33
| | | | | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=56590
* libc rcmd update for IPv6.Yoshinobu Inoue2000-01-132-70/+232
| | | | | | | | | | | A new function bindresvport2(), AF independent version of bindresvport() is also added. Reviewed by: sumikawa Obtained from: KAME project Notes: svn path=/head/; revision=55918
* added IPv6 unspecified addr check for getipnodebyaddr.Yoshinobu Inoue2000-01-131-0/+2
| | | | Notes: svn path=/head/; revision=55877
* added IPv4 mapped IPv6 addr consideration for getaddrinfo() reverse lookup caseYoshinobu Inoue2000-01-131-1/+4
| | | | Notes: svn path=/head/; revision=55876
* Add three-tier symbol naming in support of POSIX thread cancellationJason Evans2000-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(). Notes: svn path=/head/; revision=55837
* Fixed missing include in synopsis.Bruce Evans2000-01-052-4/+4
| | | | | | | | Use long lines instead of lines split with backslash-newline in synopsis. My synopsis checker doesn't understand backslash-newline. Notes: svn path=/head/; revision=55474
* Fixed missing include in synopsis.Bruce Evans2000-01-051-0/+1
| | | | Notes: svn path=/head/; revision=55473
* Suppress vast quantities of unneeded warnings spewed by libc's gethostbydnsRobert Watson1999-12-281-3/+4
| | | | | | | | | | on encountering a real-world SIG record during a lookup of another type. PR: bin/7352 Reviewed by: peter, eivind Notes: svn path=/head/; revision=55174
* Small bug fix and improvementsYoshinobu Inoue1999-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. Notes: svn path=/head/; revision=55167