summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* MFC r263090: Make ether_line really report an error when all input is invalid.jmmv2014-04-171-5/+7
|
* MFC r260257:tuexen2014-01-071-9/+18
| | | | | | | | | | Fix several bugs in sctp_bindx(): * Set errno to EAFNOSUPPORT if an address is provided which is neither AF_INET nor AF_INET6. * Don't modify the arguments. * Don't smash the stack when provided with a non-zero port. * Handle the case correctly where the first address provided is an IPv6 address.
* Remove an unused variable and fix a memory leak in sctp_connectx().tuexen2013-09-191-3/+4
| | | | | Approved by: re (gjb) MFC after: 3 days
* libc: Use SOCK_CLOEXEC for various internal file descriptors.jilles2013-09-064-9/+12
| | | | | | | This change avoids undesirably passing some internal file descriptors to a process created (fork+exec) by another thread. Kernel support for SOCK_CLOEXEC was added in r248534, March 19, 2013.
* libc: Make various internal file descriptors from fopen() close-on-exec.jilles2013-08-2310-18/+18
|
* Consistently use 'af' as an argument name for address family.pjd2013-08-181-2/+2
| | | | | Now both gethostbyname2(3) and gethostbyaddr(3) use the same argument name. The same argument name is also used in implementations of those functions.
* Fix the handling of SCTP_CURRENT_ASSOC and SCTP_ALL_ASSOC intuexen2013-07-091-0/+5
| | | | | | sctp_opt_info(). MFC after: 3 days
* Fix a bug where SCTP_ENABLE_STREAM_RESET is not handled bytuexen2013-07-091-0/+3
| | | | | | sctp_opt_info(). MFC after: 3 days
* Update references.hrs2013-07-092-12/+11
|
* Make recv() and send() cancellation points, as required by POSIX.jilles2013-06-092-6/+10
| | | | | Call the recvfrom() and sendto() functions overridden by libthr instead of the _recvfrom() and _sendto() versions that are not cancellation points.
* Switch to 2-clause license and standard textemaste2013-06-061-11/+11
| | | | Approved by: bms@
* mdoc: convert .Fd to .In, which is much nicer.joel2013-06-042-6/+6
|
* Switch to 2-clause licenseemaste2013-06-031-6/+0
| | | | Approved by: bms@
* Remove clause 3 and 4 from TNF licensesemaste2013-05-293-21/+0
| | | | | | | Per the NetBSD Foundation statement Third parties are encouraged to change the license on any files which have a 4-clause license contributed to the NetBSD Foundation to a 2-clause license.
* Remove the advertising clause from the Regents of the University ofemaste2013-05-281-5/+1
| | | | California's license, per the letter dated July 22, 1999.
* Remove the advertising clause from the Regents of the University ofemaste2013-05-2810-50/+10
| | | | California's license, per the letter dated July 22, 1999.
* Update manpages for r250887.ed2013-05-212-6/+2
| | | | | | Remove the lists of unneeded header files. Requested by: eadler
* Improve compatibility with recent flex from flex.sourceforge.net.jkim2013-05-031-3/+2
|
* Remove the number of addresses restriction from sctp_connectx().tuexen2013-04-101-202/+94
| | | | | | | Remove unused code. While there, do some cleanup of the code. MFC after: 1 week
* libc: Avoid SIGPIPE when nscd closes the connection unexpectedly.jilles2013-03-131-4/+5
| | | | | | | | | It is almost always a bug if nscd closes the connection unexpectedly but programs should not be killed with SIGPIPE for it. Reviewed by: bushman Tested by: Jan Beich MFC after: 1 week
* Change examples to be consistent with what style(9) says.zeising2013-02-142-8/+8
| | | | | Approved by: joel (mentor) MFC After: 2 weeks
* Improve code style. No functional change.tuexen2013-02-101-7/+7
| | | | MFC after: 3 days
* Re-enable ip6addrctl support but only for IPv6 address.ume2013-01-101-7/+5
| | | | | Requested by: Ben Morrow <ben__at__morrow.me.uk> MFC after: 1 week
* Disable destination address selection support ofume2013-01-091-0/+8
| | | | | | | | getipnodebyname(1). RFC 2553 mentions IPv6 addresses are returned 1st. Spotted by: uqs MFC after: 1 week
* Cleanup the code a bit, which improves the portability.tuexen2012-11-191-43/+42
| | | | MFC after: 1 week
* Fix the handling of mapped IPv6 addresses in sctp_connectx().tuexen2012-11-191-1/+0
| | | | MFC after: 3 days
* - the preferred way to write a NULL pointer constant is with NULLkevlo2012-11-163-9/+6
| | | | | | - whitespace nit Reviewed by: glebius
* Fix errno in a couple of error cases.tuexen2012-11-031-1/+3
| | | | MFC after: 3 days
* remove duplicate semicolons where possible.eadler2012-10-221-1/+1
| | | | | Approved by: cperciva MFC after: 1 week
* Return zero from get_addrselectpolicy() when no source-address-selectionemax2012-07-181-0/+2
| | | | | | policy is installed. MFC after: 1 week
* libc: Remove some unused strings from getaddrinfo().jilles2012-07-151-13/+12
|
* Be explicit about the dependency on nsparser.h.obrien2012-06-211-1/+1
|
* Fix two warnings about self-assignment in libc. These normally onlydim2012-06-061-1/+1
| | | | | | | trigger with clang, when you either use -save-temps, or ccache. Reported by: Sevan / Venture37 <venture37@gmail.com> MFC after: 3 days
* Update copyright date.tuexen2012-05-231-2/+3
| | | | MFC after: 3 days
* Add missing header needed by free()kevlo2012-05-221-0/+1
| | | | Reported by: tinderbox
* Use the LLINDEX macro to access the link-level I/F index. This makesmarcel2012-05-194-4/+4
| | | | | | | it possible to work with a different type for the sdl_index field -- it only requires a recompile. Obtained from: Juniper Networks, Inc.
* mdoc: avoid unterminated quoted strings.joel2012-05-131-5/+5
|
* General mdoc(7) and typo fixes.gjb2012-05-113-4/+4
| | | | | | PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* Remove debug output.tuexen2012-05-041-1/+0
| | | | MFC after: 3 days
* Move sctp_sendv and sctp_recvv to FBSD_1.3 as suggested bytuexen2012-04-261-2/+5
| | | | | | | Konstantin Belousov. MFC after: 1 week. X-MFC with: r234715
* Export symbols for sctp_sendv() and sctp_recvv().tuexen2012-04-261-0/+2
| | | | MFC after: 1 week
* When searching for uninitialized memory usage add ensure that the entireeadler2012-04-151-0/+3
| | | | | | | | | | struct is set to zero. PR: bin/166483 Submitted by: Roy Marples <roy@marples.name> Reviewed by: delphij Approved by: cperciva MFC after: 3 days
* Eliminate two cases of unwanted strncpy(). The name is not requireddelphij2012-04-022-4/+0
| | | | | | | | by the current code, and the results would get overwritten anyway by subsequent memset(). Reviewed by: ume MFC after: 1 month
* Remove trailing whitespace per mdoc lint warningeadler2012-03-2911-67/+67
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Minor indentation and paragraph nits.joel2012-03-271-4/+4
|
* mdoc: correct .Bd/.Bl arguments.joel2012-03-261-6/+6
| | | | Reviewed by: brueffer
* Remove superfluous paragraph macro.joel2012-03-253-3/+0
|
* draft-ietf-ipv6-scoping-arch-02.txt is now RFC 4007eadler2012-03-191-1/+1
| | | | | | | | PR: docs/163771 Submitted by: phk Reviewed by: If someone else reviewed your modification. Approved by: cperciva MFC after: 1 week
* Globally replace u_int*_t from (non-contributed) man pages.ed2012-02-121-1/+1
| | | | | | | | | | | The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types. I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected. MFC after: 1 month
* Switch getifaddrs(3) to the new API introduced in r231505. Also removebz2012-02-111-122/+47
| | | | | | | | | | | | | conditional code parts not used by or applicable to FreeBSD. The new implementation is supposed to be able to cope with changes to the 'l' versions of the msghdr structs now used as well as to if_data allowing future changes without breaking things. This restores carp(4) config support in HEAD after r231504. Reviewed by: glebius, brooks MFC After: 3 months
OpenPOWER on IntegriCloud