]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-openflow-1.3.c
Fix compiling on GNU/Hurd. [skip appveyor]
[tcpdump] / print-openflow-1.3.c
index 8008c2f38ccb4d8746189957e13086abbd5d5c33..6dedf50b5ed90bae59e0ae8d8aa970f2e63824ba 100644 (file)
@@ -655,8 +655,8 @@ of13_port_print(netdissect_options *ndo,
        /* pad */
        cp += 4;
        /* hw_addr */
-       ND_PRINT(", hw_addr %s", GET_ETHERADDR_STRING(cp));
-       cp += MAC_ADDR_LEN;
+       ND_PRINT(", hw_addr %s", GET_MAC48_STRING(cp));
+       cp += MAC48_LEN;
        /* pad2 */
        cp += 2;
        /* name */
@@ -676,7 +676,7 @@ of13_port_print(netdissect_options *ndo,
        cp += 4;
        /* state */
        ND_PRINT("\n\t   state 0x%08x", GET_BE_U_4(cp));
-       of_bitmap_print(ndo, ofpps_bm, GET_BE_U_4(cp), OFPPS_U);;
+       of_bitmap_print(ndo, ofpps_bm, GET_BE_U_4(cp), OFPPS_U);
        cp += 4;
        /* curr */
        ND_PRINT("\n\t   curr 0x%08x", GET_BE_U_4(cp));
@@ -812,8 +812,8 @@ of13_port_mod_print(netdissect_options *ndo,
        /* pad */
        cp += 4;
        /* hw_addr */
-       ND_PRINT(", hw_addr %s", GET_ETHERADDR_STRING(cp));
-       cp += MAC_ADDR_LEN;
+       ND_PRINT(", hw_addr %s", GET_MAC48_STRING(cp));
+       cp += MAC48_LEN;
        /* pad2 */
        cp += 2;
        /* config */