Lines Matching refs:ethhdr
79 struct eth_hdr* ethhdr; local
94 ethhdr = (struct eth_hdr *)p->payload;
97 (unsigned)ethhdr->dest.addr[0], (unsigned)ethhdr->dest.addr[1], (unsigned)ethhdr->dest.addr[2],
98 (unsigned)ethhdr->dest.addr[3], (unsigned)ethhdr->dest.addr[4], (unsigned)ethhdr->dest.addr[5],
99 (unsigned)ethhdr->src.addr[0], (unsigned)ethhdr->src.addr[1], (unsigned)ethhdr->src.addr[2],
100 (unsigned)ethhdr->src.addr[3], (unsigned)ethhdr->src.addr[4], (unsigned)ethhdr->src.addr[5],
101 lwip_htons(ethhdr->type)));
103 type = ethhdr->type;
106 struct eth_vlan_hdr *vlan = (struct eth_vlan_hdr*)(((char*)ethhdr) + SIZEOF_ETH_HDR);
116 if (!LWIP_HOOK_VLAN_CHECK(netif, ethhdr, vlan)) {
118 if (!ETHARP_VLAN_CHECK_FN(ethhdr, vlan)) {
136 if (ethhdr->dest.addr[0] & 1) {
138 if (ethhdr->dest.addr[0] == LL_IP4_MULTICAST_ADDR_0) {
140 if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) &&
141 (ethhdr->dest.addr[2] == LL_IP4_MULTICAST_ADDR_2)) {
148 else if ((ethhdr->dest.addr[0] == LL_IP6_MULTICAST_ADDR_0) &&
149 (ethhdr->dest.addr[1] == LL_IP6_MULTICAST_ADDR_1)) {
154 else if (eth_addr_cmp(ðhdr->dest, ðbroadcast)) {
264 struct eth_hdr* ethhdr; local
290 ethhdr = (struct eth_hdr*)p->payload;
291 ethhdr->type = eth_type_be;
292 ETHADDR32_COPY(ðhdr->dest, dst);
293 ETHADDR16_COPY(ðhdr->src, src);