CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2016/12/12 18:36:21

Modified files:
        sbin/ifconfig  : ifconfig.c 

Log message:
make setting and getting tunnel addresses wrt to ipv6 scope handling.

setting a tunnel addresses uses a sockaddr_in6 from getaddrinfo, which
sets sin6_scope_id for scoped addresses. this is nice and portable.

reading a tunnel address assumed the scope was embedded in link local
addresses in sin6_addr, and unpacked the scope back into sin6_scope_id.
this is inconsistent with the code that sets tunnel addresses.

this fixes the read path so it assumes the kernel sets sin6_scope_id
like it it assumes the kernel will read on the set side. noone likes
the kame hack of embedding the scope id in the addreses.

ok mpi@

Reply via email to