blob: 5cce7488eed4ab859f3316282a85eb7e4c143e43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include "netdissect.h"
#include "interface.h"
#ifdef DLT_NFLOG
static void
nflog_print(struct netdissect_options *ndo, const u_char *p, u_int length, u_int caplen)
{
ip_print(ndo, p, length);
return;
}
u_int
nflog_if_print(struct netdissect_options *ndo,
const struct pcap_pkthdr *h, const u_char *p)
{
int j = 0;
/* Discard NFLOG header */
for (j = 0; j < 104; j++) {
*p++;
}
nflog_print(ndo, p, h->len - 104, h->caplen - 104);
return 0;
}
#endif /* DLT_NFLOG */
|