summaryrefslogtreecommitdiff
path: root/src/lib/libc/net (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* strlen(3) returns size_t.ray2007-02-181-4/+6
| | | | OK itojun@.
* Remove duplicate code. No functional change.ray2007-02-171-39/+22
| | | | OK itojun@, moritz@, and millert@.
* Remove two mutexes by replacing getservbyname() and getservbyport()ray2007-02-152-32/+29
| | | | | | calls with their reentrant versions. OK millert@.
* correct a mistake concerning ifa_data;jmc2007-02-141-6/+5
| | | | found by Srebrenko Sehic, corrected by millert and claudio;
* remove size_t and int mixup. same as getaddrinfo.c 1.30 -> 1.31.itojun2007-02-141-5/+2
|
* Remove int pretending to be a size_t.ray2007-02-141-5/+2
| | | | OK millert@.
* RFC4291 declares that IPv6 numeric representation must have no more thanitojun2006-12-301-3/+8
| | | | 4 hex digits between colons. deraadt ok
* tweak the text on deprecated functions, after some help from tom;jmc2006-12-092-12/+14
|
* various tweaks;jmc2006-12-091-18/+17
|
* various tweaks; my apologies to itojun for forgetting tojmc2006-12-091-26/+28
| | | | send him feedback for these
* switch IPv6 advanced API from RFC2292 to RFC3542 (2292 is superseded by 3542).itojun2006-12-097-5/+971
| | | | | | | | | | the kernel still handles RFC2292 set/getsockopts, so that compiled binary has no trouble running. userland sees RFC3542 symbols only on header file so new code has to use RFC3542 API. bump libc shlib minor for function additions. tested on i386/amd64 by jmc, i386 by brad. checked by deraadt.
* return is not a function. (cosmetic)itojun2006-12-081-28/+28
|
* change semantics of ff01::/16 to interface local multicastitojun2006-11-172-5/+6
| | | | | | (to sync up with more recent IPv6 spec) ok from: deraadt mcbride
* remove calls to abort(3) that can't happen anyway; fromotto2006-10-211-11/+1
| | | | <bret dot lambert at gmail.com>; ok millert@ deraadt@
* Remove unnecessary /* NOTREACHED */ comments because our lint isray2006-09-252-20/+8
| | | | | | cool and recognizes __dead, and because shorter examples are clearer. OK otto@.
* If fgetln() != NULL, len == 0 is impossible, so remove check.ray2006-09-231-3/+3
| | | | OK otto@ and jaredy@.
* Clarify strlcpy code by explicitly naming variable `len' andray2006-04-181-5/+6
| | | | | | | separating out each step. Inspired during miscommunication with tedu@. OK deraadt@
* Remove str2number(), use strtonum(3) instead.ray2006-04-141-44/+20
| | | | | | | | Fix some type mismatches. Replace magic numbers. Remove superfluous strlen(3) calls. Earlier diff OK kjell@, OK deraadt@
* (char)to{upper,lower}()deraadt2006-03-311-4/+4
|
* oldmask = sigprocmask(SIG_BLOCK, &mask, &oldmask);deraadt2006-03-311-1/+1
| | | | is not valid code; found by lint
* Pass size of correct variable to memset().ray2006-03-221-2/+2
| | | | | | From Alexey Dobriyan. OK otto@
* Include limits.h directly instead of depending on another headermillert2006-01-172-2/+4
| | | | to include it for us.
* Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELENmillert2006-01-171-2/+2
|
* Currently sys/socket.h needs sys/types.h so add #include <sys/types.h> toclaudio2005-12-303-3/+6
| | | | | the list of necessary includes. Now the manpages match reality. OK mpf@ millert@
* handle chroot and res_init calls better. diagnosis assistance from otto.tedu2005-12-221-21/+18
| | | | ok deraadt otto.
* Do not clobber errno when calling close(2) in example code.otto2005-11-151-2/+6
| | | | From form@ via mpech@
* save errno in example code. from mpech@ ok jmc@otto2005-11-131-1/+3
|
* add $OpenBSD$ tags, as requested by dtucker.espie2005-11-101-0/+1
|
* `ether_addr' is the name of a structure, not a function: remove its MLINKjmc2005-10-022-4/+3
| | | | and remove its entry from the .Nm list;
* zap rcsid.espie2005-08-0647-375/+234
| | | | | | | split functions off res_debug.c so that getnetnamadr.c does not pull it all when it's used. okay deraadt@, krw@
* Restore recent changes except for the actual one that causes the problem.millert2005-07-271-20/+8
|
* backout gethostent changes for now -- there is fallout, discovered by ottojaredy2005-07-271-10/+22
|
* In _gethtent() ignore host.h_length if it is set to 0. Previouslymillert2005-07-241-10/+7
| | | | | | we only ignored it if host.h_addrtype was AF_UNSPEC. Set host.h_length to 0 in _gethtbyname2() since that function does not take a length argument. Problem found by jaredy@
* *hostent() fixes:jaredy2005-07-231-22/+13
| | | | | | | | | | | | - Make _gethtent() static - _gethtbyname() is dead code (succeeded by _gethtbyname2), kill it - _gethtent() requires setting the address family field of the file-scope variable `host' to that of the desired type of the entry being searched for. Change the behavior to enforce this if it is not AF_UNSPEC, which will now allow stepping through entries, and set it to specific values everywhere else. help & ok millert
* - sync prototypes and header file excerptsjaredy2005-07-2213-102/+116
| | | | | | - typos/spelling, punctuation, rewording, macro, and layout fixes. help & ok jmc
* fix spelling mistake (in comment);jmc2005-07-181-2/+2
| | | | from ray lai;
* use "www" as the service name in the example instead of "http" since "www"dlg2005-07-051-5/+5
| | | | | | is what is used in /etc/services. ok jmc@ henning@ millert@
* Remove a check about whether sa->sa_len is equal to salen frommarcm2005-06-191-4/+1
| | | | | | | getnameinfo(3). POSIX doesn't require this and it breaks code that doesn't handle it. "I think this is safe" millert@
* remove netns stuff, ok millerthenning2005-06-175-459/+4
| | | | libc major bump by espie in a few
* remove references to ns(4);jmc2005-06-091-2/+1
|
* Make gethostbyaddr() prototype match POSIX. This means len is nowmillert2005-06-082-16/+15
| | | | unsigned but there is no ABI change. OK deraadt@
* sort sections;jmc2005-06-051-5/+5
|
* s/-p1003.1-2003/-p1003.1-2004/gjmc2005-06-052-4/+4
|
* be more careful with snprintf. ok millert@moritz2005-05-021-2/+2
|
* explain where type and class are defined; ok jmc@fgsch2005-04-051-1/+8
| | | | CVS ----------------------------------------------------------------------
* make the resolver stat resolv.conf and update if it changes.tedu2005-03-3010-34/+68
| | | | useful feedback and ok deraadt@
* add consttedu2005-03-281-4/+4
|
* add some const to ether_*. remove bonus prototypes this brought out.tedu2005-03-281-7/+7
| | | | ok deraadt@
* ansify. ok deraadt@ moritz@otto2005-03-2543-665/+348
|
* There is no need to call freeaddrinfo() in case of an error.claudio2005-03-121-1/+6
| | | | | getaddrinfo() does that already by itself. OK jmc@ beck@