]> The Tcpdump Group git mirrors - tcpdump/blobdiff - addrtoname.c
Spell most remaining MAC_ADDR_LEN instances. [skip ci]
[tcpdump] / addrtoname.c
index 39b4a241690d897c4b674e780a03699b47ef7183..ce81207815ebef62d0432e74e3bc27a74fe85d77 100644 (file)
@@ -84,7 +84,7 @@
         #define NEED_NETINET_IF_ETHER_H
       #else /* HAVE_STRUCT_ETHER_ADDR */
        struct ether_addr {
-               unsigned char ether_addr_octet[6];
+               unsigned char ether_addr_octet[MAC_ADDR_LEN];
        };
       #endif /* HAVE_STRUCT_ETHER_ADDR */
     #endif /* what declares ether_ntohost() */
@@ -927,7 +927,7 @@ init_protoidarray(netdissect_options *ndo)
 }
 
 static const struct etherlist {
-       const u_char addr[6];
+       const u_char addr[MAC_ADDR_LEN];
        const char *name;
 } etherlist[] = {
        {{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, "Broadcast" },