]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ether.c
Update WinDump.dsp
[tcpdump] / print-ether.c
index 057825dc7e5f6c3d6eb6e8bd2ef7a8f0be4de2da..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,
@@ -376,7 +376,7 @@ ethertype_print(netdissect_options *ndo,
        case ETHERTYPE_PPP:
                if (length) {
                        ND_PRINT((ndo, ": "));
-                       ppp_print(/*ndo,*/p, length);
+                       ppp_print(ndo, p, length);
                }
                return (1);
 
@@ -394,7 +394,7 @@ ethertype_print(netdissect_options *ndo,
                return (1);
 
        case ETHERTYPE_LLDP:
-               lldp_print(/*ndo,*/p, length);
+               lldp_print(ndo, p, length);
                return (1);
 
         case ETHERTYPE_LOOPBACK: