Lines Matching refs:ea
105 #define ETHER_FILL_MCAST_ADDR_FROM_IP(ea, mgrp_ip) { \ argument
106 ((uint8 *)ea)[0] = 0x01; \
107 ((uint8 *)ea)[1] = 0x00; \
108 ((uint8 *)ea)[2] = 0x5e; \
109 ((uint8 *)ea)[3] = ((mgrp_ip) >> 16) & 0x7f; \
110 ((uint8 *)ea)[4] = ((mgrp_ip) >> 8) & 0xff; \
111 ((uint8 *)ea)[5] = ((mgrp_ip) >> 0) & 0xff; \
136 #define ETHER_SET_LOCALADDR(ea) (((uint8 *)(ea))[0] = (((uint8 *)(ea))[0] | 2)) argument
137 #define ETHER_IS_LOCALADDR(ea) (((uint8 *)(ea))[0] & 2) argument
138 #define ETHER_CLR_LOCALADDR(ea) (((uint8 *)(ea))[0] = (((uint8 *)(ea))[0] & 0xfd)) argument
139 #define ETHER_TOGGLE_LOCALADDR(ea) (((uint8 *)(ea))[0] = (((uint8 *)(ea))[0] ^ 2)) argument
142 #define ETHER_SET_UNICAST(ea) (((uint8 *)(ea))[0] = (((uint8 *)(ea))[0] & ~1)) argument
148 #define ETHER_ISMULTI(ea) (((const uint8 *)(ea))[0] & 1) argument
182 #define ETHER_ISBCAST(ea) ((((const uint8 *)(ea))[0] & \ argument
183 ((const uint8 *)(ea))[1] & \
184 ((const uint8 *)(ea))[2] & \
185 ((const uint8 *)(ea))[3] & \
186 ((const uint8 *)(ea))[4] & \
187 ((const uint8 *)(ea))[5]) == 0xff)
188 #define ETHER_ISNULLADDR(ea) ((((const uint8 *)(ea))[0] | \ argument
189 ((const uint8 *)(ea))[1] | \
190 ((const uint8 *)(ea))[2] | \
191 ((const uint8 *)(ea))[3] | \
192 ((const uint8 *)(ea))[4] | \
193 ((const uint8 *)(ea))[5]) == 0)
207 #define ETHER_ISUCAST(ea) ((((uint8 *)(ea))[0] & 0x01) == 0) argument