summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-032-2/+2
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* Fix a problem whereby a corrupt DNS record can cause named to crash. [11:06]cperciva2011-12-231-2/+2
| | | | | | | | | | | | | | | | | | | | Add an API for alerting internal libc routines to the presence of "unsafe" paths post-chroot, and use it in ftpd. [11:07] Fix a buffer overflow in telnetd. [11:08] Make pam_ssh ignore unpassphrased keys unless the "nullok" option is specified. [11:09] Add sanity checking of service names in pam_start. [11:10] Approved by: so (cperciva) Approved by: re (bz) Security: FreeBSD-SA-11:06.bind Security: FreeBSD-SA-11:07.chroot Security: FreeBSD-SA-11:08.telnetd Security: FreeBSD-SA-11:09.pam_ssh Security: FreeBSD-SA-11:10.pam
* Address warnings found by clang.tuexen2011-12-171-36/+28
| | | | MFC after: 3 months.
* A major overhaul of the CARP implementation. The ip_carp.c was startedglebius2011-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from scratch, copying needed functionality from the old implemenation on demand, with a thorough review of all code. The main change is that interface layer has been removed from the CARP. Now redundant addresses are configured exactly on the interfaces, they run on. The CARP configuration itself is, as before, configured and read via SIOCSVH/SIOCGVH ioctls. A new prefix created with SIOCAIFADDR or SIOCAIFADDR_IN6 may now be configured to a particular virtual host id, which makes the prefix redundant. ifconfig(8) semantics has been changed too: now one doesn't need to clone carpXX interface, he/she should directly configure a vhid on a Ethernet interface. To supply vhid data from the kernel to an application the getifaddrs(8) function had been changed to pass ifam_data with each address. [1] The new implementation definitely closes all PRs related to carp(4) being an interface, and may close several others. It also allows to run a single redundant IP per interface. Big thanks to Bjoern Zeeb for his help with inet6 part of patch, for idea on using ifam_data and for several rounds of reviewing! PR: kern/117000, kern/126945, kern/126714, kern/120130, kern/117448 Reviewed by: bz Submitted by: bz [1]
* Fix a bug where sctp_sendmdg() uses uninitialized memory.tuexen2011-12-151-0/+1
| | | | MFC after: 3 days.
* Add support for the SCTP_REMOTE_UDP_ENCAPS_PORT socket option.tuexen2011-11-201-0/+3
| | | | | | | Retire the the now unused sctp_udp_tunneling_for_client_enable sysctl variable. MFC after: 3 months.
* Fix whitespace inconsistencies found in homegrown Symbol.maps.ed2011-10-071-10/+10
|
* Fix a pathname (s,netinet/if_ether.h,net/ethernet.h,).hrs2011-08-081-1/+1
| | | | | | PR: docs/159341 Submitted by: Garrett Cooper Approved by: re (kib)
* The result of a joint work between rrs@ and myself at the IETF:tuexen2011-08-031-0/+3
| | | | | | | | | | | * Decouple the path supervision using a separate HB timer per path. * Add support for potentially failed state. * Bring back RTO.min to 1 second. * Accept packets on IP-addresses already announced via an ASCONF * While there: do some cleanups. Approved by: re@ MFC after: 2 months.
* Document the latest changes to sctp_opt_info() in the code.tuexen2011-06-181-4/+31
| | | | | This makes sctp_opt_info() compiliant with the latest version of the socket API ID.
* Add SCTP_MAX_BURST support to sctp_opt_info().tuexen2011-06-171-0/+3
| | | | | | This only applies to 9.0 and higher, since the type of the values has changed since we introduced it. So it can't be MFCed.
* Update the list of supported socket options for sctp_opt_info().tuexen2011-06-171-3/+6
| | | | MFC after: 1 month.
* Fix two typos and remove redundant code.tuexen2011-06-161-5/+2
| | | | MFC after: 1 month.
* * Fix the handling of addresses in sctp_sendv().tuexen2011-06-161-42/+83
| | | | | | | * Add support for SCTP_SENDV_NOINFO. * Improve the error handling of sctp_sendv() and sctp_recv(). MFC after: 1 month
* Add support for the newly added SCTP API.tuexen2011-06-151-21/+253
| | | | | | | | | | | | | In particular add support for: * SCTP_SNDINFO, SCTP_PRINFO, SCTP_AUTHINFO, SCTP_DSTADDRV4, and SCTP_DSTADDRV6 cmsgs. * SCTP_NXTINFO and SCTP_RCVINFO cmgs. * SCTP_EVENT, SCTP_RECVRCVINFO, SCTP_RECVNXTINFO and SCTP_DEFAULT_SNDINFO socket option. * Special association ids (SCTP_FUTURE_ASSOC, ...) * sctp_recvv() and sctp_sendv() functions. MFC after: 1 month.
* * Update copyright notice.tuexen2011-05-051-78/+63
| | | | | | | * Cleanup usage of iov's. * Add support for SCTP_TIMEOUTS socketoption. * Fix a bug in sctp_recvmsg(): return the msg_flags in case of an error. * Fix a bug in the error handling of sctp_peeloff(): return the -1.
* Fix struct FILE * leak on error (in disabled by default hesiod support code).kib2011-01-081-0/+1
| | | | | | Submitted by: henning petersen <henning.petersen t-online de> PR: 153756 MFC after: 1 week
* Clang related fixes:rpaulo2010-10-131-0/+1
| | | | | | | * When calling syslog(), pass a format string. * Define YY_NO_INPUT on nslexer.l Submitted by: Norberto Lopes <nlopes.ml at gmail.com>
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-083-4/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* When no protocol entry is found, getproto*_r(3) shouldume2010-10-053-3/+3
| | | | | | | return zero. Spotted by: Kostik Belousov <kostikbel__at__gmail.com> MFC after: 2 weeks
* Clear errno for each method dispatch.ume2010-10-041-0/+2
| | | | | Spotted by: Kostik Belousov <kostikbel__at__gmail.com> MFC after: 2 weeks
* Revert changes of 'assure' to 'ensure' made in r211936.brucec2010-09-112-4/+4
| | | | Approved by: rrs (mentor)
* Fix incorrect usage of 'assure' and 'insure'.brucec2010-08-284-6/+6
| | | | Approved by: rrs (mentor)
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-163-4/+5
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Correct the return code from _dns_gethostby*() to correspondume2010-08-151-4/+20
| | | | | | | with h_errno. Obtained from: NetBSD MFC after: 2 weeks
* - When there is no room for returning the result, nss backendume2010-08-1311-49/+109
| | | | | | | | | | have to return ERANGE and terminate with NS_RETURN. - When gethostbyname_r(3) and the friends end with an error, set errno to the value nss backend returns, and return errno value. PR: kern/131623 MFC after: 2 weeks
* Fix typos and spelling mistakes.joel2010-08-062-2/+2
|
* Spelling fixes.joel2010-08-023-3/+3
|
* If a user calls sctp_sendx() with a NULLrrs2010-07-071-0/+5
| | | | | | | sinfo we will crash. Instead we should provide our own temp structure to use internally. MFC after: 1 month
* Increment 'sa' at the end of the loop; otherwise, only the firstbrucec2010-07-051-1/+1
| | | | | | | address ever gets checked. Approved by: rrs (mentor) MFC after: 1 month
* Use ISO C99 integer types instead of the BSD-specific u_int*_t.brucec2010-07-043-29/+29
| | | | Approved by: rrs (mentor)
* sctp_recvmsg returns the number of bytes received, not sent.brucec2010-06-111-1/+1
| | | | | Approved by: rrs (mentor) MFC after: 1 month
* Use the stored length value instead of calculating it by strlen().ume2010-04-061-8/+6
|
* Add capability to use a db version of services. It is enabled byume2010-04-042-1/+204
| | | | | | specifying `db' as source of service in /etc/nsswitch.conf. MFC after: 2 weeks
* Reduce duplicate code.ume2010-04-041-59/+33
| | | | MFC after: 2 weeks
* Treat '+' as special only when in compat mode, and simplifyume2010-04-041-22/+19
| | | | | | the logic bit. MFC after: 2 weeks
* Stop adding trailing '\n'. The servent_unpack() doesn't expectume2010-04-041-10/+3
| | | | | | lines terminated with '\n'. MFC after: 2 weeks
* Remove extra semicolon.brucec2010-01-311-1/+1
| | | | Approved by: rrs (mentor)
* Fix typo of ENOTCONN.brucec2010-01-314-3/+5
| | | | | | Add missing RETURN VALUES section in sctp_opt_info(3). Approved by: rrs (mentor)
* Miscellaneous mdoc, spelling and inconsistency fixes.brueffer2010-01-129-23/+24
| | | | | | PR: 142573, 142576 (mostly) Submitted by: brucec MFC after: 1 week
* - correct xref sectionsdanger2009-11-282-4/+4
| | | | | | PR: docs/140940 Submitted by: Bruce Cran <bruce@cran.org.uk> MFC after: 1 week
* Add missing IEEE1394 support dropped during merge from NetBSD.ume2009-11-121-0/+11
|
* ANSIfy.ume2009-11-111-25/+8
| | | | MFC after: 1 week
* Add NLS catalogs support to gai_strerror(3).ume2009-11-091-0/+58
| | | | Controlled by NLS define.
* Revert r196976, now that <machine/param.h> behaves predictably.phk2009-09-091-1/+0
|
* Add necessary includephk2009-09-081-0/+1
|
* Document how to enable strict RFC 1034 enforcements.delphij2009-05-291-1/+14
| | | | PR: kern/129477
* Fix an issue when nss fallback routines are used in a multithreaded application.zml2009-05-271-4/+23
| | | | | Reviewed by: bushman Approved by: dfr (mentor)
* Fix an obvious bug in getsourcefilter()'s use of struct __msfilterreq;bms2009-04-291-2/+3
| | | | | | | | | | | | | the kernel will return in msfr_nsrcs the number of source filters in-mode for a given multicast group. However, the filters themselves were never copied out, as the libc function clobbers this field with zero, causing the kernel to assume the provided vector of struct sockaddr_storage has zero length. This bug would only affect users of SSM multicast, which is shimmed in 7.x. Picked up during mtest(8) refactoring. MFC after: 1 day
* Query DNS only once per an address family.ume2009-03-291-86/+170
| | | | | Obtained from: KAME MFC after: 2 weeks
OpenPOWER on IntegriCloud