m_pkthdr.rcvif->if_index broken in recent CURRENT
Gleb Smirnoff
glebius at freebsd.org
Thu Aug 12 00:50:58 PDT 2004
I can see this at least in fxp driver: if I capture packets using
ng_ether(4), and check interface name like this
printf("idx %d, name %s\n",
(*m)->m_pkthdr.rcvif->if_index,
(*m)->m_pkthdr.rcvif->if_xname);
I get on console:
idx 0, name fxp0
Really fxp's index is 1 (AFAIK if_index must be > 0), I have checked this
using if_nametoindex() from userland.
--
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
More information about the freebsd-current
mailing list