summaryrefslogtreecommitdiff
path: root/print-sll.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-09-13 21:16:44 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-09-13 21:16:44 +0200
commite67f4fcae8173ccd4a7de1a0c5fedd2265675f81 (patch)
tree57d245a259576f2b2d27c1372ccb09da49144e3e /print-sll.c
parent818169971c0a572f4fc5763f91396169581e64c9 (diff)
downloadtcpdump-e67f4fcae8173ccd4a7de1a0c5fedd2265675f81.tar.gz
Add more nd_print_trunc() calls
Diffstat (limited to 'print-sll.c')
-rw-r--r--print-sll.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/print-sll.c b/print-sll.c
index 51526579..4d8b1bd4 100644
--- a/print-sll.c
+++ b/print-sll.c
@@ -290,7 +290,8 @@ recurse:
* the enclosed type field.
*/
if (caplen < 4) {
- ND_PRINT("[|vlan]");
+ ndo->ndo_protocol = "vlan";
+ nd_print_trunc(ndo);
return (hdrlen + caplen);
}
if (ndo->ndo_eflag) {
@@ -477,7 +478,8 @@ recurse:
* the enclosed type field.
*/
if (caplen < 4) {
- ND_PRINT("[|vlan]");
+ ndo->ndo_protocol = "vlan";
+ nd_print_trunc(ndo);
return (hdrlen + caplen);
}
if (ndo->ndo_eflag) {