Date: Thu, 12 Aug 2004 11:50:53 +0400 From: Gleb Smirnoff <glebius@freebsd.org> To: current@freebsd.org Subject: m_pkthdr.rcvif->if_index broken in recent CURRENT Message-ID: <20040812075053.GA21129@cell.sick.ru>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040812075053.GA21129>
