]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-llc.c
Introduce --time-stamp-precision
[tcpdump] / print-llc.c
index c2363d5fd0dd6acc13af3d10e9ac2a5a0f00b6d3..e78378d05b5afb5db7531cde88175b953ff6e7eb 100644 (file)
@@ -124,7 +124,7 @@ static const struct tok null_values[] = {
 };
 
 struct oui_tok {
-       u_int32_t       oui;
+       uint32_t        oui;
        const struct tok *tok;
 };
 
@@ -144,8 +144,8 @@ int
 llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
          const u_char *esrc, const u_char *edst, u_short *extracted_ethertype)
 {
-       u_int8_t dsap_field, dsap, ssap_field, ssap;
-       u_int16_t control;
+       uint8_t dsap_field, dsap, ssap_field, ssap;
+       uint16_t control;
        int is_u;
        register int ret;
 
@@ -153,7 +153,7 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
 
        if (caplen < 3) {
                ND_PRINT((ndo, "[|llc]"));
-               default_print((u_char *)p, caplen);
+               ND_DEFAULTPRINT((u_char *)p, caplen);
                return(0);
        }
 
@@ -179,7 +179,7 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
                 */
                if (caplen < 4) {
                        ND_PRINT((ndo, "[|llc]"));
-                       default_print((u_char *)p, caplen);
+                       ND_DEFAULTPRINT((u_char *)p, caplen);
                        return(0);
                }
 
@@ -312,8 +312,8 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
                                ND_PRINT((ndo, "%s ", tok2str(llc_values, "Unknown DSAP 0x%02x", dsap)));
                        else
                                ND_PRINT((ndo, "%s > %s %s ",
-                                               etheraddr_string(esrc),
-                                               etheraddr_string(edst),
+                                               etheraddr_string(ndo, esrc),
+                                               etheraddr_string(ndo, edst),
                                                tok2str(llc_values, "Unknown DSAP 0x%02x", dsap)));
                } else {
                        if (esrc == NULL || edst == NULL)
@@ -322,9 +322,9 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
                                        tok2str(llc_values, "Unknown DSAP 0x%02x", dsap)));
                        else
                                ND_PRINT((ndo, "%s %s > %s %s ",
-                                       etheraddr_string(esrc),
+                                       etheraddr_string(ndo, esrc),
                                         tok2str(llc_values, "Unknown SSAP 0x%02x", ssap),
-                                       etheraddr_string(edst),
+                                       etheraddr_string(ndo, edst),
                                        tok2str(llc_values, "Unknown DSAP 0x%02x", dsap)));
                }
        }
@@ -363,7 +363,7 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
 int
 snap_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, u_int bridge_pad)
 {
-       u_int32_t orgcode;
+       uint32_t orgcode;
        register u_short et;
        register int ret;