diff options
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index ef522a84e..8c43f24ef 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1709,6 +1709,7 @@ int ndpi_is_datalink_supported(int datalink_type) { case DLT_IEEE802_11_RADIO: case DLT_RAW: case DLT_PPI: + case LINKTYPE_LINUX_SLL2: return 1; default: return 0; @@ -1874,6 +1875,12 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow, ip_offset = 16 + eth_offset; break; + /* Linux Cooked Capture v2 - 276 */ + case LINKTYPE_LINUX_SLL2: + type = (packet[eth_offset+10] << 8) + packet[eth_offset+11]; + ip_offset = 20 + eth_offset; + break; + /* Radiotap link-layer - 127 */ case DLT_IEEE802_11_RADIO: radiotap = (struct ndpi_radiotap_header *) &packet[eth_offset]; |