|
47 | 47 | #define BUFSIZE 128 |
48 | 48 |
|
49 | 49 | extern const char *linkaddr_string(netdissect_options *, const uint8_t *, const unsigned int, const unsigned int); |
50 | | -extern const char *mac64_string(netdissect_options *, const uint8_t *); |
| 50 | +extern const char *mac48_string(netdissect_options *, const uint8_t *); |
51 | 51 | extern const char *eui64_string(netdissect_options *, const uint8_t *); |
52 | 52 | extern const char *eui64le_string(netdissect_options *, const uint8_t *); |
53 | 53 | extern const char *tcpport_string(netdissect_options *, u_short); |
@@ -79,11 +79,11 @@ get_linkaddr_string(netdissect_options *ndo, const uint8_t *p, |
79 | 79 | } |
80 | 80 |
|
81 | 81 | static inline const char * |
82 | | -get_mac64_string(netdissect_options *ndo, const uint8_t *p) |
| 82 | +get_mac48_string(netdissect_options *ndo, const uint8_t *p) |
83 | 83 | { |
84 | 84 | if (!ND_TTEST_LEN(p, MAC48_LEN)) |
85 | 85 | nd_trunc_longjmp(ndo); |
86 | | - return mac64_string(ndo, p); |
| 86 | + return mac48_string(ndo, p); |
87 | 87 | } |
88 | 88 |
|
89 | 89 | static inline const char * |
@@ -128,7 +128,7 @@ get_ip6addr_string(netdissect_options *ndo, const u_char *p) |
128 | 128 | } |
129 | 129 |
|
130 | 130 | #define GET_LINKADDR_STRING(p, type, len) get_linkaddr_string(ndo, (const u_char *)(p), type, len) |
131 | | -#define GET_MAC48_STRING(p) get_mac64_string(ndo, (const u_char *)(p)) |
| 131 | +#define GET_MAC48_STRING(p) get_mac48_string(ndo, (const u_char *)(p)) |
132 | 132 | #define GET_EUI64_STRING(p) get_eui64_string(ndo, (const u_char *)(p)) |
133 | 133 | #define GET_EUI64LE_STRING(p) get_eui64le_string(ndo, (const u_char *)(p)) |
134 | 134 | #define GET_ISONSAP_STRING(nsap, nsap_length) get_isonsap_string(ndo, (const u_char *)(nsap), nsap_length) |
|
0 commit comments