]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ether.c
Added support to print radius attribute CUI
[tcpdump] / print-ether.c
index 64b7f338ca4d949aa8f61f84b5ecf7b0185b0426..7e9f78bea2881c99a6ecf55538cf2de2a37ec763 100644 (file)
@@ -89,13 +89,13 @@ ether_hdr_print(netdissect_options *ndo,
                 const u_char *bp, u_int length)
 {
        register const struct ether_header *ep;
-       u_int16_t ether_type;
+       uint16_t ether_type;
 
        ep = (const struct ether_header *)bp;
 
        ND_PRINT((ndo, "%s > %s",
-                    etheraddr_string(ESRC(ep)),
-                    etheraddr_string(EDST(ep))));
+                    etheraddr_string(ndo, ESRC(ep)),
+                    etheraddr_string(ndo, EDST(ep))));
 
        ether_type = EXTRACT_16BITS(&ep->ether_type);
        if (!ndo->ndo_qflag) {
@@ -181,7 +181,7 @@ recurse:
                        return;
                }
                if (ndo->ndo_eflag) {
-                       u_int16_t tag = EXTRACT_16BITS(p);
+                       uint16_t tag = EXTRACT_16BITS(p);
 
                        ND_PRINT((ndo, "vlan %u, p %u%s, ",
                            tag & 0xfff,