lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 19 Jun 2007 16:29:18 -0700 From: Stephen Hemminger <shemminger@...ux-foundation.org> To: David Lamparter <lists@...c24.net> Cc: netdev@...r.kernel.org Subject: Re: [PATCH] iproute2: Format IPv6 tunnels endpoints nicely. On Sat, 9 Jun 2007 15:53:58 +0200 David Lamparter <lists@...c24.net> wrote: > Change formatting of IPv6 tunnel endpoints from hex chain to standard IPv6 > representation. > > Signed-off-by: David Lamparter <equinox@...c24.net> > > --- > lib/ll_addr.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/lib/ll_addr.c b/lib/ll_addr.c > index 581487d..f558050 100644 > --- a/lib/ll_addr.c > +++ b/lib/ll_addr.c > @@ -38,6 +38,9 @@ const char *ll_addr_n2a(unsigned char *addr, int alen, int type, char *buf, int > (type == ARPHRD_TUNNEL || type == ARPHRD_SIT || type == ARPHRD_IPGRE)) { > return inet_ntop(AF_INET, addr, buf, blen); > } > + if (alen == 16 && type == ARPHRD_TUNNEL6) { > + return inet_ntop(AF_INET6, addr, buf, blen); > + } > l = 0; > for (i=0; i<alen; i++) { > if (i==0) { Sure applied. -- Stephen Hemminger <shemminger@...ux-foundation.org> - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists