Lines Matching refs:ETH_ADDR_LEN
62 memset(data, 0, ETH_ADDR_LEN);
65 EthAddr::EthAddr(const uint8_t ea[ETH_ADDR_LEN])
67 for (int i = 0; i < ETH_ADDR_LEN; ++i)
73 for (int i = 0; i < ETH_ADDR_LEN; ++i)
99 // the hack below is to make sure that ETH_ADDR_LEN is 6 otherwise
101 int bytes[ETH_ADDR_LEN == 6 ? ETH_ADDR_LEN : -1];
103 &bytes[2], &bytes[3], &bytes[4], &bytes[5]) != ETH_ADDR_LEN) {
104 memset(data, 0xff, ETH_ADDR_LEN);
108 for (int i = 0; i < ETH_ADDR_LEN; ++i) {
110 memset(data, 0xff, ETH_ADDR_LEN);
129 return !memcmp(left.bytes(), right.bytes(), ETH_ADDR_LEN);