diff options
Diffstat (limited to 'print-sll.c')
-rw-r--r-- | print-sll.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/print-sll.c b/print-sll.c index e6c7bd4a..17e9c750 100644 --- a/print-sll.c +++ b/print-sll.c @@ -400,6 +400,7 @@ sll2_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char int llc_hdrlen; u_int hdrlen; #ifdef HAVE_NET_IF_H + uint32_t index; char ifname[IF_NAMESIZE]; #endif @@ -416,7 +417,7 @@ sll2_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char sllp = (const struct sll2_header *)p; #ifdef HAVE_NET_IF_H - uint32_t index = EXTRACT_BE_U_4(sllp->sll2_if_index); + index = EXTRACT_BE_U_4(sllp->sll2_if_index); if (if_indextoname(index, ifname)) ND_PRINT("ifindex %u (%s) ", index, ifname); else |