Lines Matching refs:ethhdr
83 struct eth_hdr* ethhdr; local
98 ethhdr = (struct eth_hdr *)p->payload;
101 (unsigned)ethhdr->dest.addr[0], (unsigned)ethhdr->dest.addr[1], (unsigned)ethhdr->dest.addr[2],
102 (unsigned)ethhdr->dest.addr[3], (unsigned)ethhdr->dest.addr[4], (unsigned)ethhdr->dest.addr[5],
103 (unsigned)ethhdr->src.addr[0], (unsigned)ethhdr->src.addr[1], (unsigned)ethhdr->src.addr[2],
104 (unsigned)ethhdr->src.addr[3], (unsigned)ethhdr->src.addr[4], (unsigned)ethhdr->src.addr[5],
105 lwip_htons(ethhdr->type)));
107 type = ethhdr->type;
110 struct eth_vlan_hdr *vlan = (struct eth_vlan_hdr*)(((char*)ethhdr) + SIZEOF_ETH_HDR);
120 if (!LWIP_HOOK_VLAN_CHECK(netif, ethhdr, vlan)) {
122 if (!ETHARP_VLAN_CHECK_FN(ethhdr, vlan)) {
140 if (ethhdr->dest.addr[0] & 1) {
142 if (ethhdr->dest.addr[0] == LL_IP4_MULTICAST_ADDR_0) {
144 if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) &&
145 (ethhdr->dest.addr[2] == LL_IP4_MULTICAST_ADDR_2)) {
152 else if ((ethhdr->dest.addr[0] == LL_IP6_MULTICAST_ADDR_0) &&
153 (ethhdr->dest.addr[1] == LL_IP6_MULTICAST_ADDR_1)) {
158 else if (eth_addr_cmp(ðhdr->dest, ðbroadcast)) {
268 struct eth_hdr* ethhdr; local
294 ethhdr = (struct eth_hdr*)p->payload;
295 ethhdr->type = eth_type_be;
296 ETHADDR32_COPY(ðhdr->dest, dst);
297 ETHADDR16_COPY(ðhdr->src, src);