af-packet: handle raw link

If no link layer header is reported then it is a raw header.
pull/1917/head
Eric Leblond 9 years ago
parent 994bc15c2a
commit 11eb1d7c1d

@ -1307,6 +1307,7 @@ static int AFPGetDevLinktype(int fd, const char *ifname)
case ARPHRD_LOOPBACK: case ARPHRD_LOOPBACK:
return LINKTYPE_ETHERNET; return LINKTYPE_ETHERNET;
case ARPHRD_PPP: case ARPHRD_PPP:
case ARPHRD_NONE:
return LINKTYPE_RAW; return LINKTYPE_RAW;
default: default:
return ifr.ifr_hwaddr.sa_family; return ifr.ifr_hwaddr.sa_family;

Loading…
Cancel
Save