break;
case CFM_CCM_MD_FORMAT_MAC:
- if (md_namelength == 6) {
+ if (md_namelength == MAC_ADDR_LEN) {
ND_PRINT("\n\t MAC %s", GET_ETHERADDR_STRING(md_name));
} else {
ND_PRINT("\n\t MAC (length invalid)");
pptr += netal;
li -= netal;
- if (snpal == 6)
+ if (snpal == MAC_ADDR_LEN)
ND_PRINT("\n\t SNPA (length: %u): %s",
snpal,
GET_ETHERADDR_STRING(snpa));
* For now, we just assume 6 means Ethernet.
* XXX - print others as strings of hex?
*/
- if (GET_BE_U_2(sllp->sll_halen) == 6)
+ if (GET_BE_U_2(sllp->sll_halen) == MAC_ADDR_LEN)
ND_PRINT("%s ", GET_ETHERADDR_STRING(sllp->sll_addr));
if (!ndo->ndo_qflag) {
* For now, we just assume 6 means Ethernet.
* XXX - print others as strings of hex?
*/
- if (GET_U_1(sllp->sll2_halen) == 6)
+ if (GET_U_1(sllp->sll2_halen) == MAC_ADDR_LEN)
ND_PRINT("%s ", GET_ETHERADDR_STRING(sllp->sll2_addr));
if (!ndo->ndo_qflag) {