* https://web.archive.org/web/20161025044402/http://brantleycoilecompany.com/AoEr11.pdf
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include "netdissect-stdinc.h"
cp += 1;
len -= 1;
/* Ethernet Address */
- ND_PRINT(", Ethernet Address: %s", GET_ETHERADDR_STRING(cp));
- cp += MAC_ADDR_LEN;
- len -= MAC_ADDR_LEN;
+ ND_PRINT(", Ethernet Address: %s", GET_MAC48_STRING(cp));
+ cp += MAC48_LEN;
+ len -= MAC48_LEN;
}
return;
{
uint8_t nmacs, i;
- if (len < AOEV1_RESERVE_ARG_LEN || (len - AOEV1_RESERVE_ARG_LEN) % MAC_ADDR_LEN)
+ if (len < AOEV1_RESERVE_ARG_LEN || (len - AOEV1_RESERVE_ARG_LEN) % MAC48_LEN)
goto invalid;
/* RCmd */
ND_PRINT("\n\tRCmd: %s",
cp += 1;
len -= 1;
ND_PRINT(", NMacs: %u", nmacs);
- if (nmacs * MAC_ADDR_LEN != len)
+ if (nmacs * MAC48_LEN != len)
goto invalid;
/* addresses */
for (i = 0; i < nmacs; i++) {
- ND_PRINT("\n\tEthernet Address %u: %s", i, GET_ETHERADDR_STRING(cp));
- cp += MAC_ADDR_LEN;
- len -= MAC_ADDR_LEN;
+ ND_PRINT("\n\tEthernet Address %u: %s", i, GET_MAC48_STRING(cp));
+ cp += MAC48_LEN;
+ len -= MAC48_LEN;
}
return;