From 130636529156859aaafbf57278f5dbcceae2c76a Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 10 Sep 2014 00:13:56 +0000 Subject: [PATCH] printsock: fix decoding of unrecognized AF_PACKET packet types * net.c (printsock): Fix fallback string for AF_PACKET packet types. --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index 0e6bcce6..f262f1bd 100644 --- a/net.c +++ b/net.c @@ -273,7 +273,7 @@ printsock(struct tcb *tcp, long addr, int addrlen) tprintf("proto=%#04x, if%d, pkttype=", ntohs(addrbuf.ll.sll_protocol), addrbuf.ll.sll_ifindex); - printxval(af_packet_types, addrbuf.ll.sll_pkttype, "?"); + printxval(af_packet_types, addrbuf.ll.sll_pkttype, "PACKET_???"); tprintf(", addr(%d)={%d, ", addrbuf.ll.sll_halen, addrbuf.ll.sll_hatype);