base: add support for "raw ip" captures

- there is no need to deal with L2 as it's not even there
This commit is contained in:
Oleg Smolsky 2023-09-07 16:26:29 +00:00 committed by Oleg Smolsky
parent 6c1aa99da8
commit dd20142c87

View file

@ -205,6 +205,8 @@ void pcap_cb(u_char *ptr, const struct pcap_pkthdr *hdr, const u_char *data) {
switch(pcap_if_type) {
case DLT_RAW:
type = ETHERTYPE_IP;
break;
#ifdef DLT_LOOP
case DLT_LOOP:
#endif