summaryrefslogtreecommitdiff
path: root/print-atalk.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-03-14 16:54:17 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-03-16 19:44:47 +0100
commit546558eabd81cfc36a81a4df728fdfea0d83b41a (patch)
tree1c73014ecfb7653ffaf4bfa1855ace7d6bd6e33e /print-atalk.c
parent61f71d2046ced967e1bd998d41c68faf512f75ab (diff)
downloadtcpdump-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-atalk.c')
-rw-r--r--print-atalk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/print-atalk.c b/print-atalk.c
index 0e0ab003..7398b15d 100644
--- a/print-atalk.c
+++ b/print-atalk.c
@@ -79,6 +79,7 @@ ltalk_if_print(netdissect_options *ndo,
{
u_int hdrlen;
+ ndo->ndo_protocol = "ltalk_if";
hdrlen = llap_print(ndo, p, h->len);
if (hdrlen == 0) {
/* Cut short by the snapshot length. */
@@ -100,6 +101,7 @@ llap_print(netdissect_options *ndo,
u_short snet;
u_int hdrlen;
+ ndo->ndo_protocol = "llap";
if (length < sizeof(*lp)) {
ND_PRINT(" [|llap %u]", length);
return (length);
@@ -182,6 +184,7 @@ atalk_print(netdissect_options *ndo,
const struct atDDP *dp;
u_short snet;
+ ndo->ndo_protocol = "atalk";
if(!ndo->ndo_eflag)
ND_PRINT("AT ");
@@ -214,6 +217,7 @@ aarp_print(netdissect_options *ndo,
#define AT(member) ataddr_string(ndo, (ap->member[1]<<8)|ap->member[2],ap->member[3])
+ ndo->ndo_protocol = "aarp";
ND_PRINT("aarp ");
ap = (const struct aarp *)bp;
if (!ND_TTEST_SIZE(ap)) {