diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-03-14 16:54:17 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-03-16 19:44:47 +0100 |
commit | 546558eabd81cfc36a81a4df728fdfea0d83b41a (patch) | |
tree | 1c73014ecfb7653ffaf4bfa1855ace7d6bd6e33e /print-pflog.c | |
parent | 61f71d2046ced967e1bd998d41c68faf512f75ab (diff) | |
download | tcpdump-546558eabd81cfc36a81a4df728fdfea0d83b41a.tar.gz |
Add the ndo_protocol field in the netdissect_options structure
Update this field in printer entry functions.
It will be used for some printings.
Diffstat (limited to 'print-pflog.c')
-rw-r--r-- | print-pflog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/print-pflog.c b/print-pflog.c index 722ce65b..0be4e8ae 100644 --- a/print-pflog.c +++ b/print-pflog.c @@ -90,6 +90,7 @@ pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr) { uint32_t rulenr, subrulenr; + ndo->ndo_protocol = "pflog"; rulenr = EXTRACT_BE_U_4(&hdr->rulenr); subrulenr = EXTRACT_BE_U_4(&hdr->subrulenr); if (subrulenr == (uint32_t)-1) @@ -114,6 +115,7 @@ pflog_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const struct pfloghdr *hdr; uint8_t af; + ndo->ndo_protocol = "pflog_if"; /* check length */ if (caplen < sizeof(uint8_t)) { ND_PRINT("%s", tstr); |