encap_input
if (encap_input(&ipv4_encaptab, *mp, *offp, proto) != IPPROTO_DONE)
if (encap_input(&ipv6_encaptab, *mp, *offp, proto) != IPPROTO_DONE)