Searched refs:ethhdr (Results 1 – 6 of 6) sorted by relevance
| /lib/liblwip/src/netif/ |
| D | etharp.c | 417 struct eth_hdr *ethhdr = (struct eth_hdr *)p->payload; in etharp_send_ip() local 421 ETHADDR32_COPY(ðhdr->dest, dst); in etharp_send_ip() 422 ETHADDR16_COPY(ðhdr->src, src); in etharp_send_ip() 423 ethhdr->type = PP_HTONS(ETHTYPE_IP); in etharp_send_ip() 641 struct eth_hdr *ethhdr; local 648 ethhdr = (struct eth_hdr *)p->payload; 649 iphdr = (struct ip_hdr *)((u8_t*)ethhdr + SIZEOF_ETH_HDR); 651 if (ethhdr->type == PP_HTONS(ETHTYPE_VLAN)) { 652 iphdr = (struct ip_hdr *)((u8_t*)ethhdr + SIZEOF_ETH_HDR + SIZEOF_VLAN_HDR); 668 etharp_update_arp_entry(netif, &iphdr_src, &(ethhdr->src), ETHARP_FLAG_FIND_ONLY); [all …]
|
| D | ethernetif.c | 226 struct eth_hdr *ethhdr; 236 ethhdr = p->payload; 238 switch (htons(ethhdr->type)) {
|
| /lib/liblwip/test/unit/etharp/ |
| D | test_etharp.c | 78 struct eth_hdr *ethhdr; in create_arp_response() local 84 ethhdr = (struct eth_hdr*)p->payload; in create_arp_response() 85 etharphdr = (struct etharp_hdr*)(ethhdr + 1); in create_arp_response() 87 ethhdr->dest = test_ethaddr; in create_arp_response() 88 ethhdr->src = test_ethaddr2; in create_arp_response() 89 ethhdr->type = htons(ETHTYPE_ARP); in create_arp_response() 107 ethhdr->dest.addr[k] = test_ethaddr.addr[k]; in create_arp_response() 108 ethhdr->src.addr[k] = test_ethaddr2.addr[k]; in create_arp_response()
|
| /lib/liblwip/src/netif/ppp/ |
| D | ppp_oe.c | 301 struct eth_hdr *ethhdr; in pppoe_dispatch_disc_pkt() local 308 if (pb->len < sizeof(*ethhdr)) { in pppoe_dispatch_disc_pkt() 311 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_dispatch_disc_pkt() 312 off = sizeof(*ethhdr); in pppoe_dispatch_disc_pkt() 326 ph = (struct pppoehdr *) (ethhdr + 1); in pppoe_dispatch_disc_pkt() 508 MEMCPY(&sc->sc_dest, ethhdr->src.addr, sizeof(sc->sc_dest.addr)); in pppoe_dispatch_disc_pkt() 639 struct eth_hdr *ethhdr; in pppoe_output() local 648 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_output() 650 ethhdr->type = htons(etype); in pppoe_output() 651 MEMCPY(ethhdr->dest.addr, sc->sc_dest.addr, sizeof(ethhdr->dest.addr)); in pppoe_output() [all …]
|
| /lib/liblwip/src/arch/ |
| D | etherif.c | 258 struct eth_hdr *ethhdr; in ethernetif_input() local 266 ethhdr = p->payload; in ethernetif_input() 268 switch (htons(ethhdr->type)) { in ethernetif_input()
|
| /lib/liblwip/ |
| D | CHANGELOG | 2245 pointing to ethhdr) if the netif got the NETIF_FLAG_ETHARP flag. Else, packets
|