summaryrefslogtreecommitdiff
path: root/print-sl.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-09-25 22:21:09 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-09-25 22:21:09 +0200
commit55f499c9eb6d645d7a1e7ac14931123a1f1918e2 (patch)
tree5ac246bd5698ba9650e6b93a272d596198fbcecc /print-sl.c
parentebf60e3ccea089bc0d85d4e93bd1632597f54910 (diff)
downloadtcpdump-55f499c9eb6d645d7a1e7ac14931123a1f1918e2.tar.gz
SLIP: Remove printing the raw hex dump of the compressed header
ndo_nflag has not this function. We don't currently have an appropriate flag for this use. Not sure printing the header in hex is currently useful. Update the output of a test accordingly.
Diffstat (limited to 'print-sl.c')
-rw-r--r--print-sl.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/print-sl.c b/print-sl.c
index c955d944..e9b82fa2 100644
--- a/print-sl.c
+++ b/print-sl.c
@@ -150,15 +150,6 @@ sliplink_print(netdissect_options *ndo,
dir = -1;
break;
}
- if (ndo->ndo_nflag) {
- /* XXX just dump the header */
- int i;
-
- for (i = SLX_CHDR; i < SLX_CHDR + CHDR_LEN - 1; ++i)
- ND_PRINT("%02x.", EXTRACT_U_1(p + i));
- ND_PRINT("%02x: ", EXTRACT_U_1(p + SLX_CHDR + CHDR_LEN - 1));
- return 0;
- }
switch (EXTRACT_U_1(p + SLX_CHDR) & 0xf0) {
case TYPE_IP: