]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-common.c
Support capturing raw NFLOG headers on netfilter devices.
[libpcap] / pcap-common.c
index 31234b828d9ca2a996d88e7ff17d8aad7a88360d..d0a053c5ecd20f48d203d12b2ef9f0f36d3b1873 100644 (file)
  */
 #define LINKTYPE_JUNIPER_ATM_CEMIC             238
 
+/*
+ * NetFilter LOG messages 
+ * (payload of netlink NFNL_SUBSYS_ULOG/NFULNL_MSG_PACKET packets)
+ *
+ * Requested by Jakub Zawadzki <[email protected]>
+ */
+#define LINKTYPE_NFLOG                         239
+
 static struct linktype_map {
        int     dlt;
        int     linktype;
@@ -1151,6 +1159,9 @@ static struct linktype_map {
         /* Juniper ATM CE MIC */
        { DLT_JUNIPER_ATM_CEMIC, LINKTYPE_JUNIPER_ATM_CEMIC },
 
+        /* Linux NetFilter LOG messages */
+       { DLT_NFLOG,            LINKTYPE_NFLOG },
+
        { -1,                   -1 }
 };