printsock: fix decoding of unrecognized AF_PACKET packet types

* net.c (printsock): Fix fallback string for AF_PACKET packet types.
This commit is contained in:
Дмитрий Левин 2014-09-10 00:13:56 +00:00
parent 6522f132ba
commit 1306365291

2
net.c
View File

@ -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);