gen_ipnet_linktype(proto)
register int proto;
{
- struct block *b0, *b1;
-
switch (proto) {
case ETHERTYPE_IP:
return gen_cmp(OR_LINK, off_linktype, BPF_B,
dir);
break;
-#ifdef DL_IPNET
case DLT_IPNET:
if (dir) {
/* match outgoing packets */
b0 = gen_cmp(OR_LINK, 2, BPF_H, IPNET_INBOUND);
}
break;
-#endif
case DLT_LINUX_SLL:
if (dir) {