diff options
author | ume <ume@FreeBSD.org> | 2003-10-21 20:11:47 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-10-21 20:11:47 +0000 |
commit | bf741bc603a4e3d435392d831a2e8a401ed1d49e (patch) | |
tree | 88df25c0dd2a0863fe049f3df815c6e7ba0ce36d /lib | |
parent | 5199c863f8f9e7f134710595dee582ad037bffb6 (diff) | |
download | FreeBSD-src-bf741bc603a4e3d435392d831a2e8a401ed1d49e.zip FreeBSD-src-bf741bc603a4e3d435392d831a2e8a401ed1d49e.tar.gz |
stop use of NI_WITHSCOPEID. it was deprecated.
Obtained from: KAME
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/net/getnameinfo.3 | 11 | ||||
-rw-r--r-- | lib/libipsec/ipsec_dump_policy.c | 4 | ||||
-rw-r--r-- | lib/libipsec/pfkey_dump.c | 4 |
3 files changed, 3 insertions, 16 deletions
diff --git a/lib/libc/net/getnameinfo.3 b/lib/libc/net/getnameinfo.3 index bf197dc..88c3914 100644 --- a/lib/libc/net/getnameinfo.3 +++ b/lib/libc/net/getnameinfo.3 @@ -178,16 +178,11 @@ These flags are defined in .In netdb.h . .\" -.Sh EXTENSION +.Ss Extension for scoped IPv6 address The implementation allows experimental numeric IPv6 address notation with scope identifier. -IPv6 link-local address will appear as string like -.Dq Li fe80::1%ne0 , -if -.Dv NI_WITHSCOPEID -bit is enabled in -.Fa flags -argument. +IPv6 link-local address will appear as a string like +.Dq Li fe80::1%ne0 . Refer to .Xr getaddrinfo 3 for the notation. diff --git a/lib/libipsec/ipsec_dump_policy.c b/lib/libipsec/ipsec_dump_policy.c index 721ff20..98d16aa 100644 --- a/lib/libipsec/ipsec_dump_policy.c +++ b/lib/libipsec/ipsec_dump_policy.c @@ -293,11 +293,7 @@ set_address(buf, len, sa) size_t len; struct sockaddr *sa; { -#ifdef NI_WITHSCOPEID - const int niflags = NI_NUMERICHOST | NI_WITHSCOPEID; -#else const int niflags = NI_NUMERICHOST; -#endif if (len < 1) return NULL; diff --git a/lib/libipsec/pfkey_dump.c b/lib/libipsec/pfkey_dump.c index 0113e14..4d8eb4a 100644 --- a/lib/libipsec/pfkey_dump.c +++ b/lib/libipsec/pfkey_dump.c @@ -497,11 +497,7 @@ str_ipaddr(sa) struct sockaddr *sa; { static char buf[NI_MAXHOST]; -#ifdef NI_WITHSCOPEID - const int niflag = NI_NUMERICHOST | NI_WITHSCOPEID; -#else const int niflag = NI_NUMERICHOST; -#endif if (sa == NULL) return ""; |