HEADS UP: V4-mapped address support is removed

Sepherosa Ziehau sepherosa at gmail.com
Sat Dec 27 00:09:31 PST 2014


Hi all,

V4-mapped address is no longer supported in the master, since
727ccde8cce813911d885b7f6ed749dcea68a886.  Both kernel and world need
rebuilding, else netstat, systat and sockstat may give you weird
results.

I have removed the inpcb.inp_vflag, INP_IPV4 and INP_IPV6 which may
cause some ports building failure.  Please let me know if help is
needed.  Basicly speaking the conversion is pretty straightforward:

if (inp->inp_vflag & INP_IPV4) ====> if (INP_ISIPV4(inp))

if (inp->inp_vflag & INP_IPV6) ====> if (INP_ISIPV6(inp))

if (inp->inp_vflag & (INP_IPV4 | INP_IPV6)) ====> if (1)

if ((inp1->inp_vflag & (INP_IPV4 | INP_IPV6)) < (inp2->inp_vflag &
(INP_IPV4 | INP_IPV6)))
====>
if (inp1->inp_af < inp2->inp_af)

Thanks,
sephe


-- 
Tomorrow Will Never Die


More information about the Users mailing list