Merge pull request #88 from os12/raw-ip

base: add support for "raw ip" captures
This commit is contained in:
Alexandre Dulaunoy 2023-09-13 06:30:54 +02:00 committed by GitHub
commit 52454c7f4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) { switch(pcap_if_type) {
case DLT_RAW: case DLT_RAW:
type = ETHERTYPE_IP;
break;
#ifdef DLT_LOOP #ifdef DLT_LOOP
case DLT_LOOP: case DLT_LOOP:
#endif #endif