aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Whack 28 unused variables.Jacques Vidrine2003-02-185-9/+7
| | | | Notes: svn path=/head/; revision=111082
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).Jacques Vidrine2003-02-163-4/+6
| | | | | | | | | | Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5 Notes: svn path=/head/; revision=111010
* The .Fn functionPhilippe Charnier2003-02-062-10/+12
| | | | Notes: svn path=/head/; revision=110440
* Use in_addr_t for the right size of an IPv4 address, and copy intoBill Fenner2003-01-051-1/+3
| | | | | | | | | | an unaligned destination using bcopy instead of an assignment. Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> PR: sparc64/46729 Notes: svn path=/head/; revision=108711
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-012-2/+2
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* english(4) police.Jens Schweikhardt2002-12-272-3/+3
| | | | Notes: svn path=/head/; revision=108317
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-1910-16/+68
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.Ruslan Ermilov2002-12-184-52/+52
| | | | Notes: svn path=/head/; revision=108040
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-1811-4/+74
| | | | Notes: svn path=/head/; revision=108037
* mdoc(7) police: markup overhaul.Ruslan Ermilov2002-12-141-10/+15
| | | | Notes: svn path=/head/; revision=107864
* Add an implementation of the POSIX.1 sockatmark(3).Bill Fenner2002-12-133-2/+152
| | | | Notes: svn path=/head/; revision=107836
* Fix the HISTORY to match reality. They were never MFC'ed to 4.X.Tom Rhodes2002-12-121-1/+1
| | | | | | | | Submitted by: R. Imura <imura@ryu16.org> Approved by: re (murray) Notes: svn path=/head/; revision=107796
* Consistently mark std(in|out|err) with .Dv, because that's how theyRuslan Ermilov2002-12-042-5/+8
| | | | | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re Notes: svn path=/head/; revision=107619
* mdoc(7) police: formatting nits.Ruslan Ermilov2002-11-291-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107387
* try SIOCGIFINDEX 1st to be able to use network aliasing.Hajimu UMEMOTO2002-11-281-0/+13
| | | | | | | | Submitted by: jlemon Approved by: re Notes: svn path=/head/; revision=107378
* libc_r wasn't so tied to libc for 22 months.Ruslan Ermilov2002-11-181-5/+3
| | | | Notes: svn path=/head/; revision=107052
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.Hajimu UMEMOTO2002-10-261-1/+7
| | | | | | | MFC after: 5 days Notes: svn path=/head/; revision=106000
* - scopeid is u_int32_tHajimu UMEMOTO2002-10-251-14/+21
| | | | | | | | | | - strtoul pedant. pointed out by deraadt Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=105943
* - kill strcpyHajimu UMEMOTO2002-10-251-67/+56
| | | | | | | | | | | | | | | | | - port range check need to be done before htons. from deraadt - %d/%u audit - correct bad practice in the code - it uses two changing variables to manage buffer (buf and buflen). we eliminate buflen and use fixed point (ep) as the ending pointer. - use snprintf, not sprintf - pass correct name into q.name. from lukem@netbsd - sync comment Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=105940
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.Hajimu UMEMOTO2002-10-231-51/+77
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=105783
* Put giant locks due to make getaddrinfo(), getnameinfo()Hajimu UMEMOTO2002-10-062-1/+41
| | | | | | | | | | | | | and getipnodeby*() thread-safe. Our res_*() is not thread-safe. So, we share lock between getaddrinfo() and getipnodeby*(). Still, we cannot use getaddrinfo() and getipnodeby*() in conjunction with other functions which call res_*(). Requested by: many people Notes: svn path=/head/; revision=104558
* Allocate 64K recieve buffer for DNS responses.Hajimu UMEMOTO2002-10-032-26/+50
| | | | | | | | Though res_query.c also defines and refers MAXPACKET, it is not related to ansbuf. So, I didn't touch res_query.c. Notes: svn path=/head/; revision=104415
* Use the standardized CHAR_BIT constant instead of NBBY in userland.Mike Barcroft2002-09-251-2/+3
| | | | Notes: svn path=/head/; revision=103949
* Add forgotten newlines in debug messages.Jacques Vidrine2002-09-191-2/+2
| | | | Notes: svn path=/head/; revision=103630
* Allocate 64K recieve buffer for DNS responses.Hajimu UMEMOTO2002-09-161-27/+48
| | | | Notes: svn path=/head/; revision=103401
* Allocate 64K recieve buffer for DNS responses.Hajimu UMEMOTO2002-09-151-20/+45
| | | | | | | | | | | KAME did the modification only to _dns_getaddrinfo(). However, it is not sufficient, and res_queryN() should be modified, too. So, I did same modification to res_queryN(). Obtained from: KAME Notes: svn path=/head/; revision=103357
* Check for truncation in calls to res_send/res_query/res_search.Jacques Vidrine2002-09-156-12/+42
| | | | | | | Fail when it is detected. Notes: svn path=/head/; revision=103350
* Backout the increase of MAXPACKET from 1024 to 65536: itJacques Vidrine2002-09-156-7/+26
| | | | | | | | | broke pthreads. Reported by: mbr, tjr Notes: svn path=/head/; revision=103335
* Limit UDP payload size for EDNS0 to 0xffff, not use lower 16bit value.Hajimu UMEMOTO2002-09-141-0/+2
| | | | | | | Obtained from: KAME Notes: svn path=/head/; revision=103320
* When using res_send/res_query/res_search, the caller must eitherJacques Vidrine2002-09-136-26/+7
| | | | | | | | | | | | insure enough space is available for the response, or be prepared to resize the buffer and retry as necessary. Do the conservative thing and make sure enough space is available. Reviewed by: silence on freebsd-audit Notes: svn path=/head/; revision=103307
* Style: One space between "restrict" qualifier and "*".Tim J. Robbins2002-09-063-5/+5
| | | | Notes: svn path=/head/; revision=103012
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-252-2/+2
| | | | Notes: svn path=/head/; revision=102411
* Fix a bug in __ivaliduser_sa() which caused some rsh/rlogin attemptsJohn Polstra2002-08-241-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | to fail needlessly if a reverse DNS lookup of the IP address didn't come up with a hostname. As a comment in the code clearly stated, the "damn hostname" was looked up only for the purpose of netgroup matching. But if that lookup failed, the function bailed out immediately even though in many cases netgroup matching would not be used. This change marks the hostname as unknown but continues. Where netgroup matching is performed, an unknown hostname is handled conservatively. I.e., for "+@netgroup" (accept) entries an unknown hostname never matches, and for "-@netgroup" (reject) entries an unknown hostname always matches. In the lines affected (only), I also fixed a few bogus casts. There are others, and in fact this entire file would be a good candidate for a cleanup sweep. Reviewed by: imp (wearing his flourescent yellow Security Team cap) MFC after: 2 days Notes: svn path=/head/; revision=102369
* Fixed getaddrinfo to honor sortlist in /etc/resolv.confJim Pirzyk2002-08-211-0/+82
| | | | | | | | | | PR: bin/27939 Reviewed by: ru, sheldonh (about a year ago) Obtained from: ume (via KAME, I think) MFC after: 1 month Notes: svn path=/head/; revision=102237
* - Fix a bug that wrote one char behind the end of theRobert Drehmel2002-08-151-6/+3
| | | | | | | | | | | | | | | | | supplied buffer in case the size of it was equal to the number of characters the converted address consumed. The bug occurred when converting an AF_INET address. - Remove the SPRINTF macro and use sprintf instead. - Do not do string formatting using sprintf(3) and a temporary buffer which is copied when the supplied buffer provides enough space. Instead, use snprintf(3) and the real destination buffer, thus avoid the copy. Reported by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> (1) PR: misc/41289 Notes: svn path=/head/; revision=101943
* Put each function argument on its own line to keep lines shorterRobert Drehmel2002-08-151-1/+6
| | | | | | | than 80 columns. Notes: svn path=/head/; revision=101939
* -Add the restrict required by IEEE Std 1003.1-2001 in formRobert Drehmel2002-08-143-25/+9
| | | | | | | | | | of our __restrict macro to the prototypes and function definitions of inet_pton and inet_ntop. - Use ANSI-C function argument lists. - Adjust the prototypes in the manual page. Notes: svn path=/head/; revision=101880
* mdoc(7) police: laundry.Ruslan Ermilov2002-08-091-22/+37
| | | | Notes: svn path=/head/; revision=101576
* Remove an #include <syslog.h>. It's already included conditionallyMaxime Henrion2002-08-021-1/+0
| | | | | | | | | above, as it should be. Submitted by: Olivier Houchard <cognet@ci0.org> Notes: svn path=/head/; revision=101221
* sysctl(NET_RT_IFLIST) up to several (currently 5) times.Hajimu UMEMOTO2002-07-251-8/+29
| | | | | | | | | | | This will make the behavior robuster if many addresses are added after the size estimation of storage at the first sysctl. Reviewed by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> MFC after: 1 week Notes: svn path=/head/; revision=100657
* - ntohs() returns unsigned value.Hajimu UMEMOTO2002-07-241-59/+56
| | | | | | | | | | | | | | | | - use strlcpy. - snprintf can return negative value, so cope with it. - tweak interface index on interface locals (ff01::/16). - removed unused macros. - removed a macro that uses only once (in a trivial context). - explicitly say goodbye to ENI_xxx. - constify struct afd. Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=100628
* Use BSDi derived if_nametoindex(), if_indextoname(), if_nameindex()Hajimu UMEMOTO2002-07-156-328/+403
| | | | | | | | | | and if_freenameindex(). Obtained from: KAME MFC after: 2 weeks Notes: svn path=/head/; revision=100138
* Fix syntax error which occurred when LIBC_SCCS was defined.Robert Drehmel2002-07-071-1/+1
| | | | Notes: svn path=/head/; revision=99527
* Make NI_WITHSCOPEID a default (always on), to synchronizeHajimu UMEMOTO2002-07-021-30/+20
| | | | | | | | | | with recent 2553bis. Obtained from: KAME MFC after: 3 weeks Notes: svn path=/head/; revision=99252
* Remove two lines that were cvs merged that shouldn't have been. ThisWarner Losh2002-06-261-2/+0
| | | | | | | | | fixes the build. Reported by: dillon. Notes: svn path=/head/; revision=98887
* Remove two stray lines that snuck in the cvs mergeWarner Losh2002-06-262-2/+0
| | | | Notes: svn path=/head/; revision=98877
* Initialize a pointer that was left uninitialized with the previousJacques Vidrine2002-06-261-0/+1
| | | | | | | commit. Notes: svn path=/head/; revision=98872
* Include more robust checking of end of buffer that more completelyWarner Losh2002-06-264-52/+32
| | | | | | | plugs the hole. Notes: svn path=/head/; revision=98865
* Don't allow buffer overflow here either.Warner Losh2002-06-261-1/+3
| | | | Notes: svn path=/head/; revision=98860
* Fix a minor last, minute issue that came in after I committed.Warner Losh2002-06-261-1/+1
| | | | | | | Noticed by: nectar Notes: svn path=/head/; revision=98858