#
1.60 |
|
08-Sep-2023 |
christos |
PR/57609: Carl Engvall: Add salen checks but accept larger sizes (upto sockaddr_storage)
|
Revision tags: netbsd-10-base netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
|
#
1.59 |
|
22-Sep-2015 |
christos |
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.
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
|
#
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.
|
Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6
|
#
1.53 |
|
26-Sep-2012 |
christos |
add and document AF_LOCAL (and the rest that were not)
|
Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
|
#
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@
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
|
#
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.
|
Revision tags: matt-premerge-20091211
|
#
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().
|
Revision tags: jym-xensuspend-nbase jym-xensuspend-base
|
#
1.46 |
|
11-Feb-2009 |
lukem |
sign-compare fix
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 christos-time_t-nbase christos-time_t-base netbsd-5-base matt-mips64-base2 mjf-devfs2-base netbsd-4-0-1-RELEASE wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-fixsa-newbase wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking wrstuden-fixsa-base-1 netbsd-4-0-RELEASE cube-autoconf-base netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-armv6-base matt-mips64-base hpcarm-cleanup-base wrstuden-fixsa-base netbsd-4-base
|
#
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.
|
Revision tags: abandoned-netbsd-4-base
|
#
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
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base nathanw_sa_before_merge fvdl_fs64_base nathanw_sa_base
|
#
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
|
Revision tags: netbsd-1-6-base
|
#
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
|
Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
|
#
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.
|
Revision tags: minoura-xpg4dl-base
|
#
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).
|
Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
|
#
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)
|
Revision tags: comdex-fall-1999-base
|
#
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)
|