aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2017-02-13 13:11:54 +0100
committerCampus <campus@ntop.org>2017-02-13 13:11:54 +0100
commit787ca096e61ade2f5870139cfefd93f962637217 (patch)
tree0b7407a7b45fc119cf1c7d72c336d366d3fc8462 /example
parent363b38ceb015530fa1f054c24ebe6c55483e64c1 (diff)
parentffbe5d1e22808595d536ba63e6b74f3b4a599a5c (diff)
Merge branch 'dev-numeronove-openbsd' of https://github.com/numeronove/nDPI into numeronove-dev-numeronove-openbsd
Diffstat (limited to 'example')
-rw-r--r--example/ndpi_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c
index 3397d8a92..09b8c58b6 100644
--- a/example/ndpi_util.c
+++ b/example/ndpi_util.c
@@ -662,10 +662,12 @@ void ndpi_workflow_process_packet (struct ndpi_workflow * workflow,
break;
/* Linux Cooked Capture - 113 */
+#ifdef __linux__
case DLT_LINUX_SLL :
type = (packet[eth_offset+14] << 8) + packet[eth_offset+15];
ip_offset = 16 + eth_offset;
break;
+#endif
/* Radiotap link-layer - 127 */
case DLT_IEEE802_11_RADIO :