summaryrefslogtreecommitdiff
path: root/print-raw.c
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2014-03-12 20:02:32 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2014-03-12 20:02:32 +0400
commitce1fc8263da72437c1df54b8b3ee682413d9e6ed (patch)
tree3fd560df1877d0cfe273e29c0d0d3030ce33b897 /print-raw.c
parent83bec9d56c6af5614a7ab3abd077aed239c26b85 (diff)
downloadtcpdump-ce1fc8263da72437c1df54b8b3ee682413d9e6ed.tar.gz
NDOize more small decoders
This change converts decoders for: DLT_RAW, IPv6 routing header, USB, Symantec firewall and cHDLC.
Diffstat (limited to 'print-raw.c')
-rw-r--r--print-raw.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/print-raw.c b/print-raw.c
index 2aa07f20..83f66b48 100644
--- a/print-raw.c
+++ b/print-raw.c
@@ -25,22 +25,19 @@
#include <tcpdump-stdinc.h>
-#include <stdio.h>
-#include <string.h>
-
-#include "interface.h"
+#include "netdissect.h"
/*
* The DLT_RAW packet has no header. It contains a raw IP packet.
*/
u_int
-raw_if_print(const struct pcap_pkthdr *h, const u_char *p)
+raw_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
{
- if (eflag)
- printf("ip: ");
+ if (ndo->ndo_eflag)
+ ND_PRINT((ndo, "ip: "));
- ipN_print(p, h->len);
+ ipN_print(ndo, p, h->len);
return (0);
}