summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Let people in on the magic of INET[6]_ADDRSTRLEN which comes quite handy inmlaier2007-03-211-1/+6
| | | | | | combination with inet_ntop(). Reviewed by: trhodes "works for me"
* - Sysctl's move to seperate filerrs2007-03-151-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | - moved away from ifn/ifa access to sctp_ifa/sctp_ifn built and managed by the add-ip code. - cleaned up add-ip code to use the iterator - made iterator be a thread, which enables auto-asconf now. - rewrote and cleaned up source address selection (also made it use new structures). - Fixed a couple of memory leaks. - DACK now settable as to how many packets to delay as well as time. - connectx() to latest socket API, new associd arg. - Fixed issue with revoking and loosing potential to send when we inflate the flight size. We now inflate the cwnd too and deflate it later when the revoked chunk is sent or acked. - Got rid of some temp debug code - src addr selection moved to a common file (sctp_output.c) - Support for simple VRF's (we have support for multi-vfr via compile switch that is scrubbed from BSD but we won't need multi-vrf until we first get VRF :-D) - Rest of mib work for address information now done - Limit number of addresses in INIT/INIT-ACK to a #def (30). Reviewed by: gnn
* Document the AF_LINK extension which was imported from NetBSD.bms2007-02-281-4/+19
|
* Nuke ascii2addr() and addr2ascii(). They have no consumers anywherebms2007-02-288-441/+123
| | | | | | | | | | | | | | in FreeBSD, and originated from INRIA IPv6. Stub out netstat reference to addr2ascii() I mistakenly introduced. Update misleading man page sections. Merge NetBSD's getnameinfo() AF_LINK extensions for a portable way to print link-layer addresses given a sockaddr_dl(), minus the IEEE 1394 bits which don't map directly to our code. Obtained from: NetBSD (getnameinfo.c) Discussed on: current (March 2006)
* Fix include declaration it was sys/sctp.h should be netinet/sctp.h,rrs2007-02-2610-10/+10
| | | | reported by pluknet@gmail.com.
* Fixes build breakage.. invalid type casts.. and invalidrrs2007-02-221-6/+6
| | | | type for size in one place.
* First cut of the sctp man pages. Still need work.rrs2007-02-2211-1/+1544
|
* Fixes __FreeBSD__ being present (they should not)rrs2007-02-221-6/+4
| | | | and also trailing garbage on undef of magic numbers.
* Adds a performance improvement for when sctp_sendx isrrs2007-02-221-23/+43
| | | | | | | | | called with only one address, we then can call the generic system call. Also fixes some socket api type issues and cleans up the "magic" numbers that were being used in the code. Reviewed by: gnn
* Docuemnt exactly which functions access which NSS databases.bms2007-01-221-1/+15
| | | | | | | | Point out that FreeBSD libc has compat stubs for GNU glibc NSS modules which access NSDB_PASSWD/NSDB_GROUP, but not NSDB_HOSTS; based on painful experience porting nss_mdns. Reviewed by: ru
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-0926-104/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Consistently use a socklen_t type where required, and eliminaterodrigc2006-12-161-6/+6
| | | | | | | GCC warning "dereferencing type-punned pointer will break strict-aliasing rules". Reviewed by: rrs
* 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.
OpenPOWER on IntegriCloud