History log of /src/lib/libc/net/getnameinfo.c |
Revision | | Date | Author | Comments |
1.60 |
| 08-Sep-2023 |
christos | PR/57609: Carl Engvall: Add salen checks but accept larger sizes (upto sockaddr_storage)
|
1.59 |
| 22-Sep-2015 |
christos | branches: 1.59.8; 1.59.18; 1.59.26; be more forgiving, and don't abort on unexpected errors.
|
1.58 |
| 22-Sep-2015 |
christos | Handle herrors properly so that postfix can return 4XX codes when appropriate. Pointed out by Viktor Dukhovni.
|
1.57 |
| 03-Sep-2015 |
christos | PR/50195: Henning Petersen: Incorrect check in getnameinfo_link.
|
1.56 |
| 15-May-2015 |
joerg | Don't create a weak alias in the !RUMPACTION case.
|
1.55 |
| 15-May-2015 |
ozaki-r | Fix rump.{netstat,route} shows host's interface names in link local addresses
Interface names of IPv6 link local addresses are resolved by getnameinfo(3). So we need to rump-ify it as well as if_indextoname and getifaddrs.
|
1.54 |
| 16-Aug-2013 |
christos | Add not advertised reentrant functions: {get,set,end}hostent_r, gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use gethostbyaddr_r(3) so it is re-entrant (ahem __ypdomain). These are not being advertised because there is a bunch of different implementation of them that have a variety of type signatures.
If people want to follow someone's implementation, it is now easy.
|
1.53 |
| 26-Sep-2012 |
christos | add and document AF_LOCAL (and the rest that were not)
|
1.52 |
| 20-Mar-2012 |
matt | branches: 1.52.2; Use C89 Prototypes. Remove use of __P
|
1.51 |
| 13-Mar-2012 |
christos | PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.50 |
| 29-Jun-2010 |
seanb | branches: 1.50.6; 1.50.8; - remove extra len check as per discussion on tech-net.
|
1.49 |
| 29-Jan-2010 |
is | Print AppleTalk phase 2 range, too, if available.
|
1.48 |
| 26-Jan-2010 |
is | Add AF_APPLETALK support to getnameinfo(); make "route show" use it. Doesn't print "ranges" yet (should it be done here?); only numeric output.
|
1.47 |
| 12-Aug-2009 |
seanb | Watch getservbyport_r() semantics. sv needs scope while results are being looked at which in turn are no longer valid after a endservent_r().
|
1.46 |
| 11-Feb-2009 |
lukem | sign-compare fix
|
1.45 |
| 15-Oct-2006 |
christos | branches: 1.45.24; 1.45.28; fix incomplete initializers
|
1.44 |
| 24-Aug-2006 |
christos | use the re-entrant version of getservbyport.
|
1.43 |
| 17-Feb-2006 |
ginsbach | Return EAI_OVERFLOW instead of EAI_MEMORY when the supplied buffer is too short. This conforms to RFC3493, POSIX and XPG6. [from KAME]
|
1.42 |
| 29-Nov-2005 |
christos | WARNS=4
|
1.41 |
| 11-Nov-2002 |
thorpej | Fix signed/unsigned comparison warnings. Catch error conditions from snprintf().
|
1.40 |
| 27-Jun-2002 |
itojun | correct %d/%u mixup.
|
1.39 |
| 22-May-2002 |
kleink | Turn the flags argument to getnameinfo(3) back into an int (from unsigned int); this is consistent with RFC2553, the current draft-ietf-ipngwg- rfc2553bis-05 and the majority of deployed implementations.
Also, there is an effort under way to have this changed back to int in XBD6/XSH6, XNS, and POSIX-2001 TC1.
|
1.38 |
| 22-May-2002 |
itojun | use strlcpy, not strcpy
|
1.37 |
| 14-May-2002 |
kleink | branches: 1.37.2; More XNS5.2/POSIX-2001 alignment: change the flags argument to getnameinfo() from int to unsigned int.
|
1.36 |
| 14-May-2002 |
kleink | Align with XNS5.2/POSIX-2001: change hostlen and servlen arguments to getnameinfo() from size_t to socklen_t.
|
1.35 |
| 04-Mar-2002 |
sommerfeld | More ipip references
|
1.34 |
| 15-Nov-2001 |
itojun | make NI_WITHSCOPEID a default (always on), to synchronize with recent 2553bis. sync with kame.
|
1.33 |
| 15-Nov-2001 |
itojun | synchronize with kame better. get rid of #defines for ENI_xx.
|
1.32 |
| 06-Oct-2001 |
bjh21 | Put back AF_LINK support. This time, all the new code passes lint(1), modulo bin/14175. It should pass lint on a native i386 build, but I can't test that.
|
1.31 |
| 05-Oct-2001 |
bjh21 | Remove AF_LINK support. It generates lint warnings, and hence won't compile on i386. I'll re-commit once I've understood and fixed the problems.
|
1.30 |
| 05-Oct-2001 |
itojun | make it at least compile (there's no /usr/include/net/if_ieee1394.h exist). avoid overrun with snprintf. be careful about snprintf return value.
|
1.29 |
| 04-Oct-2001 |
bjh21 | Extend getnameinfo() to support AF_LINK sockaddrs. The intention is that anything that wants to print a link-layer address should go through here, rather than re-inventing the wheel.
|
1.28 |
| 19-Aug-2001 |
itojun | snprintf return value audit. inspired by deraadt
|
1.27 |
| 26-Apr-2001 |
kleink | Fix previous rev. the right way, using socklen_t.
|
1.26 |
| 26-Apr-2001 |
tron | Fix lint problem caused by the changes for PR standards/12703.
|
1.25 |
| 25-Jan-2001 |
jdolecek | branches: 1.25.2; make local constant arrays const
|
1.24 |
| 04-Jan-2001 |
lukem | sprinkle _DIAGASSERT() around
|
1.23 |
| 25-Sep-2000 |
itojun | remove merge error from kame.
|
1.22 |
| 25-Sep-2000 |
itojun | off-by-1 error in string length validation. From: Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>
|
1.21 |
| 07-Aug-2000 |
itojun | sync comment with reality. from kame
|
1.20 |
| 06-Jul-2000 |
christos | - remove unused vars - fix non-portable casts
|
1.19 |
| 12-Jun-2000 |
itojun | branches: 1.19.2; correct ENI_SALEN case to meet rfc2553bis.
|
1.18 |
| 12-Jun-2000 |
itojun | correct return value from getnameinfo to meet rf2553bis. (this also corrects incorrect "success" value, 0, on invalid sockaddr)
|
1.17 |
| 04-Jun-2000 |
itojun | correct arg type for getnameinfo(3) for RFC2553 conformance.
|
1.16 |
| 26-Apr-2000 |
itojun | branches: 1.16.2; bring in latest KAME implementation. conforms to draft-ietf-ipngwg-scopedaddr-format-01.txt. behavior change: returns numeric scopeid if we can't convert to string. removed #if 0'ed portion which we will never revisit.
|
1.15 |
| 24-Apr-2000 |
itojun | add __RCSID().
|
1.14 |
| 24-Apr-2000 |
itojun | supply weak alias for IPv6-related library additions. sorry to be late.
|
1.13 |
| 17-Mar-2000 |
christos | make this compile on non 4.4BSD systems
|
1.12 |
| 17-Feb-2000 |
itojun | to synchronize with progress of discussion for post draft-ietf-ipngwg-scopedaddr-format-00.txt (will be 01), use "address%interface" notation for extended scoped IPv6 address.
NOTE: the change affects link-local addresses only. I hope it to be the final change on it.....
|
1.11 |
| 16-Feb-2000 |
itojun | preparation to flip extended scoped address syntax.
the specification is still under debate; there is high possibility that "fe80::1%de0" will be the finalist but i'm not sure yet.
|
1.10 |
| 09-Feb-2000 |
itojun | revise extended scoped address format support. delimiter and the order is changed, based on discussion in ipngwg scoped address cabal. past code: fe80::1@de0 now: de0%fe80::1 this will be in sync with next extended address format proposal (which should be final - I don't want to make this kind of change again).
|
1.9 |
| 22-Jan-2000 |
mycroft | Partially delint.
|
1.8 |
| 17-Jan-2000 |
itojun | remove #if 0'ed sections.
|
1.7 |
| 05-Jan-2000 |
itojun | allow reverse query for v4 loopbacknet (127.0.0.0/8).
|
1.6 |
| 13-Dec-1999 |
itojun | fix getaddrinfo(3) and getnameinfo(3).
getaddrinfo(3): result from gethostby* will be broken if we call it again. deep-copy them. we have sa_len so configure them. getnameinfo(3): we have sa_len so configure them.
|
1.5 |
| 13-Dec-1999 |
itojun | bring in latest KAME get{addr,name}info(3). getnameinfo(3) globs ai_socktype and ai_protocol correctly. KAME scopeid extension is implemented. (draft-ietf-ipngwg-scopedaddr-format-00.txt)
bump up shlib minor (may not be necessary, but rather big difference in behavior - especially ai_flags)
|
1.4 |
| 22-Aug-1999 |
kleink | branches: 1.4.4; Need "namespace.h".
|
1.3 |
| 01-Aug-1999 |
itojun | - provide reverse query for mapped address (::ffff:10.1.1.1). - NI_NUMERICHOST and NI_HOSTREQD conflict with each other, so bark if there are both. (sync with recent KAME)
|
1.2 |
| 04-Jul-1999 |
itojun | add NetBSD RCSID on top.
|
1.1 |
| 01-Jul-1999 |
itojun | add IPv6 support functions.
get{addr,name} info are implemented to have as little impact to existing resolver code as possible, so they are NOT the optimal implementation. They are at this moment not very thread safe (as they call gethostby{name,addr}).
(shlib minor version)++, as new interfaces are added.
TODO: getipnodeby{name,addr} - which needs total reimplementation of gethostby{name,addr}. upgrade rcmd.c for multiple af support (needed for IPv6-ready rsh/rlogin)
|
1.4.4.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.16.2.1 |
| 23-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.19.2.1 |
| 25-Sep-2000 |
itojun | pullup 1.21 -> 1.23 (approved by releng-1-5)
> off-by-1 error in string length validation. > From: Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>
|
1.25.2.8 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.25.2.7 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.25.2.6 |
| 21-Jun-2002 |
nathanw | Catch up to -current.
|
1.25.2.5 |
| 22-Mar-2002 |
nathanw | Catch up to -current.
|
1.25.2.4 |
| 08-Mar-2002 |
nathanw | Catch up to -current.
|
1.25.2.3 |
| 16-Nov-2001 |
thorpej | Fix merge errors from last sync w/ -current.
|
1.25.2.2 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.25.2.1 |
| 08-Oct-2001 |
nathanw | Catch up to -current.
|
1.37.2.2 |
| 29-May-2002 |
tv | Pull up revision 1.38 (requested by tv in ticket #66): use strlcpy, not strcpy
|
1.37.2.1 |
| 25-May-2002 |
thorpej | Resolve pullup-1-6 ticket #14 (itojun), original commit message:
> Turn the flags argument to getnameinfo(3) back into an int (from unsigned > int); this is consistent with RFC2553, the current draft-ietf-ipngwg- > rfc2553bis-05 and the majority of deployed implementations. > > Also, there is an effort under way to have this changed back to int in > XBD6/XSH6, XNS, and POSIX-2001 TC1.
|
1.45.28.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.45.24.1 |
| 18-Dec-2013 |
bouyer | Apply patch, requested by bad in ticket #1887: lib/libc/net/gethnamaddr.c 1.79-1.82 via patch lib/libc/net/getnameinfo.3 1.37-1.40 via patch lib/libc/net/getnameinfo.c 1.4 via patch lib/libc/net/hostent.h 1.1, 1.2 via patch lib/libc/net/sethostent.c 1.17-1.19 via patch
Make getnameinfo(3) re-entrant (ahem __ypdomain). Add not advertised reentrant functions: {get,set,end}hostent_r, gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use gethostbyaddr_r(3). Implement no-check-names.
|
1.50.8.1 |
| 18-Dec-2013 |
bouyer | Pullup the following revisions, requested by bad in ticket 975: lib/libc/net/gethnamaddr.c 1.79-1.81, 1.84 lib/libc/net/getnameinfo.3 1.37-1.40 lib/libc/net/getnameinfo.c 1.51, 1.52, 1.54 lib/libc/net/hostent.h 1.1, 1.2 lib/libc/net/sethostent.c 1.17-1.19
Make getnameinfo(3) re-entrant (ahem __ypdomain). Add not advertised reentrant functions: {get,set,end}hostent_r, gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use gethostbyaddr_r(3). Implement no-check-names.
|
1.50.6.3 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.50.6.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.50.6.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.52.2.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.52.2.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.59.26.1 |
| 10-Mar-2024 |
martin | Pull up following revision(s) (requested by riastradh in ticket #612):
lib/libc/net/getnameinfo.c: revision 1.60
PR/57609: Carl Engvall: Add salen checks but accept larger sizes (upto sockaddr_storage)
|
1.59.18.1 |
| 10-Mar-2024 |
martin | Pull up following revision(s) (requested by riastradh in ticket #1806):
lib/libc/net/getnameinfo.c: revision 1.60
PR/57609: Carl Engvall: Add salen checks but accept larger sizes (upto sockaddr_storage)
|
1.59.8.1 |
| 10-Mar-2024 |
martin | Pull up following revision(s) (requested by riastradh in ticket #1939):
lib/libc/net/getnameinfo.c: revision 1.60
PR/57609: Carl Engvall: Add salen checks but accept larger sizes (upto sockaddr_storage)
|