On Sat, May 30, 2015 at 12:10:18AM +0200, David Lamparter wrote: > On Sat, May 23, 2015 at 11:08:39AM +0300, Timo Teräs wrote: > > Add also PREFIX_STRLEN to be the generic buffer length required > > for any prefix string representation. > [...] > > +/* Maximum prefix string length (IPv6) */ > > +#define PREFIX_STRLEN 51 > > How do you get 51? > > 8*4 + 7 + 1 + 3 + 1 = 44? > hex : / 128 nul
Hm, I guess you based that off: /usr/include/netinet/in.h:#define INET6_ADDRSTRLEN 46 ... but how the heck do they get 46? Is someone doing IPv6.11 for Workgroups? :D [insert googling here] ... ah. it's IPv4-mapped addresses m-( XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:111.111.111.111 *bangs head against desk* -David _______________________________________________ Quagga-dev mailing list [email protected] https://lists.quagga.net/mailman/listinfo/quagga-dev
