summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* This adds the "system calls"rrs2006-12-152-1/+830
| | | | | | | | | | | | | | | | | | | | sctp_getaddrlen() sctp_connectx() sctp_bindx() sctp_opt_info() sctp_getpaddrs() sctp_freepaddrs() sctp_getladdrs() sctp_freeladdrs() sctp_sendmsg() sctp_getassocid() sctp_send() sctp_sendx() sctp_sendmsgx() sctp_recvmsg() sctp_peeloff() Manual pages will be forthcoming (and the commit to porters-handbook)
* Use _kevent() instead of kevent().ume2006-12-041-7/+7
| | | | Requested by: nork
* Instead of re-implementing hton[ls] and friends for each arch, add a new MIcognet2006-11-062-8/+61
| | | | | | | file, net/ntoh.c, which just implement them using the inline functions from <sys/endian.h>. Suggested by: bde
* Document return values for res_query and res_search.lawrance2006-11-042-3/+17
| | | | | | | | | h_errno is not an extern int, just a macro providing an integer lvalue. PR: doc/50573 Submitted by: Ronald F.Guilmette <rfg@monkeys.com> Reviewed by: trhodes MFC after: 3 days
* Add missing markup bits.ru2006-10-281-1/+3
| | | | Submitted by: Emil Mikulic
* Markup fixes.ru2006-09-172-2/+2
|
* Respect MK_INET6_SUPPORT.yar2006-07-261-1/+5
|
* Fix build w/o INET6.yar2006-07-261-0/+2
| | | | Submitted by: Andre Albsmeier <Andre.Albsmeier siemens com>
* do not overload the port number on to the return value ofume2006-07-231-8/+9
| | | | | | | str2number(). this could result in an unexpected code path. Obtained from: KAME MFC after: 1 week
* stop use of mutex lock in ICMP lookup.ume2006-07-231-18/+5
| | | | MFC after: 1 week
* remove obsolete comments.ume2006-07-221-8/+0
| | | | MFC after: 3 days
* simplification in explore_numeric: unified the post-process withume2006-07-211-32/+22
| | | | | | | GET_AI and GET_PORT. Commented on an impossible case. Obtained from: KAME MFC after: 1 week
* RFC3493 requires use of inet_aton for AF_INET.ume2006-07-211-3/+7
| | | | | Obtained from: KAME MFC after: 1 week
* clean-up: rewrote explore_null and explore_numeric without using sentinel.ume2006-07-211-35/+20
| | | | | | | | we do not need it since we make (at most) a single addrinfo entry in these cases. Obtained from: KAME MFC after: 1 week
* - draft-ietf-ipngwg-icmp-namelookups-09ume2006-07-211-79/+164
| | | | | | | | | - make it compilable It still requires root privilege and is experimental. Obtained from: KAME MFC after: 1 week
* Use a prototype for res_init().stefanf2006-07-171-1/+1
| | | | MFC after: 3 days
* Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1 on 64 bitume2006-05-211-25/+22
| | | | | | arch. X-MFC after: never
* Return EAI_OVERFLOW instead of EAI_MEMORY when the supplied buffer isume2006-05-213-4/+7
| | | | | | too short. This conforms to RFC3493, POSIX and XPG6. Obtained from: NetBSD
* Upgrade res_update(3) and the friends to BIND9's one excluding TSIGume2006-05-214-935/+0
| | | | | | support. X-MFC after: never
* Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1:ume2006-05-126-22/+36
| | | | | | | | | | http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html gethostbyaddr_r() is changed as well. It breaks ABI backward compatibility on 64 bit arch. So, we fix it on 32 bit arch only for now. Reported by: Rostislav Krasny <rosti.bsd@gmail.com>
* Fix alignment problem on AMD64.ume2006-05-021-4/+4
| | | | | | Reported by: Pascal Hofstee <caelian__at__gmail.com> Submitted by: Michael Bushkov <bushman__at__rsu.ru> Tested by: Pascal Hofstee <caelian__at__gmail.com>
* `cache' couldn't co-exist with `compat'.ume2006-04-301-2/+3
| | | | Submitted by: "Michael Bushkov" <bushman__at__rsu.ru>
* - Extend the nsswitch to support Services, Protocols and Rpcume2006-04-2815-522/+3635
| | | | | | | | databases. - Make nsswitch support caching. Submitted by: Michael Bushkov <bushman__at__rsu.ru> Sponsored by: Google Summer of Code 2005
* - make reentrant version of netdb functions glibc style API, andume2006-04-1516-705/+1258
| | | | | | | expose them to outside of libc. - make netdb functions NSS friendly. Reviewed by: arch@ and current@ (no objection)
* fix indent.ume2006-04-011-9/+9
|
* Expose res_update and friends again. At least, ports/mail/spamilterume2006-03-304-111/+31
| | | | | | | | | uses them. Now, we have res_nupdate and res_nmkupdate as well, but they are still based on our old resolver for binary backward compatibility. So, they don't provide new features such as TSIG support. Reported by: pointyhat via kris
* If the query choked with EDNS0, retry without EDNS0.ume2006-03-281-8/+24
| | | | Obtained from: res_nquery() of BIND9.
* - Use ANSI C prototype.ume2006-03-253-152/+59
| | | | - Remove trailing space.
* When res_nquerydomain() returns SERVFAIL, we should try next domain.ume2006-03-241-1/+9
|
* When res_send() fails, we should reserve an error code.ume2006-03-241-2/+2
|
* Update the resolver in libc to BIND9's one.ume2006-03-2141-7838/+365
| | | | | | | | | | | | | | | | | | | | | | 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)
* When we are doing initialization against q, use its own size, notdelphij2006-03-211-1/+1
| | | | | | | the size of q2. This should be a no-op because q and q2 are of the same type. Submitted by: Alexey Dobriyan <adobriyan gmail com>
* Reimplementation of world/kernel build options. For details, see:ru2006-03-171-1/+1
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* ns_name_skip was recently redefined to __ns_name_skipdeischen2006-03-131-1/+1
| | | | | | like the others in <include/arpa/nameser.h>. Submitted by: ume
* Add each directory's symbol map file to SYM_MAPS.deischen2006-03-131-0/+2
|
* Add symbol maps and initial symbol version definitions to libc.deischen2006-03-131-0/+247
| | | | Reviewed by: davidxu
* Handle the errors returned by res_querydomain() in same manner.ume2006-03-012-0/+40
| | | | | | Reported by: yar Tested by: yar, Rostislav Krasny <rosti.bsd__at__gmail.com> MFC after: 1 week
* Correct a comment.deischen2006-02-273-22/+6
| | | | | | | | | Staticize two tables thare are not visible in <resolv.h> and which are also local in Solaris' libresolv. Remove two functions that are not referenced in libc nor anywhere else I can find, not visible in <resolv.h> and which are also local in Solaris libresolv.
* Sync inet_net_pton() and inet_net_ntop() with latest BIND9's includesume2006-02-263-85/+420
| | | | | | | | | an IPv6 support. PR: kern/93740 Submitted by: Rudolf Cejka <cejkar__at__fit.vutbr.cz> Obtained from: BIND9 MFC after: 1 week
* - Just query 'as is', if there is a trailing dot in the name.ume2006-02-242-18/+40
| | | | | | | | | | - Don't query 'as is' twice. PR: bin/62139 Reported by: Rostislav Krasny <rosti.bsd__at__gmail.com> Tested by: Rostislav Krasny <rosti.bsd__at__gmail.com> Obtained from: BIND9 (with some modification) MFC after: 1 week
* Fix inet6_opt_get_val() prototype.ru2005-11-231-1/+1
|
* Add missing includes.ru2005-11-231-1/+3
|
* The KAME's getipnodebyaddr() code honor the MULTI_PTRS_ARE_ALIASESume2005-11-151-0/+1
| | | | | | | | | define also, but res_config.h was not included into libc/net/name6.c. So getipnodebyaddr() ignored the multiple PTRs. PR: kern/88241 Submitted by: Dan Lukes <dan__at__obluda.cz> MFC after: 3 days
* Include <sys/types.h> and <limits.h> ourselves, don't assume they are includedstefanf2005-08-202-0/+2
| | | | | | | | | | through <pthread.h>. gen/sem.c: Prerequisite for <_semaphore.h> net/getprotoent.c: USHRT_MAX net/getservent.c: USHRT_MAX stdio/ungetwc.c: MB_LEN_MAX stdio/vfwscanf.c: MB_LEN_MAX
* Respect the YES_HESIOD build variable.phk2005-08-061-2/+8
|
* Fix all the spelling mistakes I could find in the man pages for wordskeramida2005-07-311-1/+1
| | | | | | | | that have at least 3 characters. MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these.
* don't accept invalid form of an address like 1:2:3:4:5:6:7::8.ume2005-07-271-0/+4
| | | | | | PR: bin/84106 Obtained from: BIND9 MFC after: 2 days
* Remove padding for ABI compatibility of ai_addrlen memberume2005-07-221-3/+0
| | | | | from struct addrinfo. This change break ABI compatibility on 64 bit arch.
* refer RFC 3542 rather than RFC 2292bis.ume2005-07-193-4/+4
| | | | | Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net> Obtained from: KAME
* fixed the validation code of routing header length in inet6_rth_getaddr().ume2005-07-191-4/+3
| | | | | | | reported by Delia Kecskemeti <delia.kecskemeti__at__windriver.com> Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net> Obtained from: KAME
OpenPOWER on IntegriCloud