Home
last modified time | relevance | path

Searched refs:ethhdr (Results 1 – 13 of 13) sorted by relevance

/components/net/lwip/lwip-2.0.3/src/netif/
A Dethernet.c83 struct eth_hdr* ethhdr; local
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;
140 if (ethhdr->dest.addr[0] & 1) {
268 struct eth_hdr* ethhdr; local
295 ethhdr->type = eth_type_be;
[all …]
/components/net/lwip/lwip-2.1.2/src/netif/
A Dethernet.c83 struct eth_hdr *ethhdr; local
104 ethhdr = (struct eth_hdr *)p->payload;
107 …(unsigned char)ethhdr->dest.addr[0], (unsigned char)ethhdr->dest.addr[1], (unsigned char)ethhdr->d…
108 …(unsigned char)ethhdr->dest.addr[3], (unsigned char)ethhdr->dest.addr[4], (unsigned char)ethhdr->d…
109 …(unsigned char)ethhdr->src.addr[0], (unsigned char)ethhdr->src.addr[1], (unsigned char)ethhdr->s…
110 …(unsigned char)ethhdr->src.addr[3], (unsigned char)ethhdr->src.addr[4], (unsigned char)ethhdr->s…
113 type = ethhdr->type;
146 if (ethhdr->dest.addr[0] & 1) {
273 struct eth_hdr *ethhdr; local
301 ethhdr = (struct eth_hdr *)p->payload;
[all …]
/components/net/lwip/lwip-1.4.1/src/netif/
A Detharp.c422 ETHADDR16_COPY(&ethhdr->src, src); in etharp_send_ip()
641 struct eth_hdr *ethhdr; local
691 struct eth_hdr *ethhdr; local
1183 struct eth_hdr *ethhdr; local
1279 struct eth_hdr* ethhdr; local
1296 (unsigned)ethhdr->dest.addr[0], (unsigned)ethhdr->dest.addr[1], (unsigned)ethhdr->dest.addr[2],
1297 (unsigned)ethhdr->dest.addr[3], (unsigned)ethhdr->dest.addr[4], (unsigned)ethhdr->dest.addr[5],
1298 (unsigned)ethhdr->src.addr[0], (unsigned)ethhdr->src.addr[1], (unsigned)ethhdr->src.addr[2],
1299 (unsigned)ethhdr->src.addr[3], (unsigned)ethhdr->src.addr[4], (unsigned)ethhdr->src.addr[5],
1302 type = ethhdr->type;
[all …]
/components/net/lwip/lwip-1.4.1/test/unit/etharp/
A Dtest_etharp.c78 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()
/components/net/lwip/lwip-2.0.3/test/unit/etharp/
A Dtest_etharp.c79 struct eth_hdr *ethhdr; in create_arp_response() local
85 ethhdr = (struct eth_hdr*)p->payload; in create_arp_response()
86 etharphdr = (struct etharp_hdr*)(ethhdr + 1); in create_arp_response()
88 ethhdr->dest = test_ethaddr; in create_arp_response()
89 ethhdr->src = test_ethaddr2; in create_arp_response()
90 ethhdr->type = htons(ETHTYPE_ARP); in create_arp_response()
108 ethhdr->dest.addr[k] = test_ethaddr.addr[k]; in create_arp_response()
109 ethhdr->src.addr[k] = test_ethaddr2.addr[k]; in create_arp_response()
/components/net/lwip/lwip-2.1.2/test/unit/etharp/
A Dtest_etharp.c80 struct eth_hdr *ethhdr; in create_arp_response() local
86 ethhdr = (struct eth_hdr*)p->payload; in create_arp_response()
87 etharphdr = (struct etharp_hdr*)(ethhdr + 1); in create_arp_response()
89 ethhdr->dest = test_ethaddr; in create_arp_response()
90 ethhdr->src = test_ethaddr2; in create_arp_response()
91 ethhdr->type = htons(ETHTYPE_ARP); in create_arp_response()
109 ethhdr->dest.addr[k] = test_ethaddr.addr[k]; in create_arp_response()
110 ethhdr->src.addr[k] = test_ethaddr2.addr[k]; in create_arp_response()
/components/net/lwip/lwip-1.4.1/src/netif/ppp/
A Dppp_oe.c301 struct eth_hdr *ethhdr; in pppoe_dispatch_disc_pkt() local
308 if (pb->len < sizeof(*ethhdr)) { in pppoe_dispatch_disc_pkt()
312 off = sizeof(*ethhdr); in pppoe_dispatch_disc_pkt()
639 struct eth_hdr *ethhdr; in pppoe_output() local
650 ethhdr->type = htons(etype); in pppoe_output()
651 MEMCPY(ethhdr->dest.addr, sc->sc_dest.addr, sizeof(ethhdr->dest.addr)); in pppoe_output()
652 …MEMCPY(ethhdr->src.addr, ((struct eth_addr *)sc->sc_ethif->hwaddr)->addr, sizeof(ethhdr->src.addr)… in pppoe_output()
950 struct eth_hdr *ethhdr; in pppoe_send_padt() local
962 MEMCPY(ethhdr->dest.addr, dest, sizeof(ethhdr->dest.addr)); in pppoe_send_padt()
963 …MEMCPY(ethhdr->src.addr, ((struct eth_addr *)outgoing_if->hwaddr)->addr, sizeof(ethhdr->src.addr)); in pppoe_send_padt()
[all …]
/components/net/lwip/lwip-2.0.3/src/netif/ppp/
A Dpppoe.c389 struct eth_hdr *ethhdr; in pppoe_disc_input() local
399 if (pb->len < sizeof(*ethhdr)) { in pppoe_disc_input()
403 off = sizeof(*ethhdr); in pppoe_disc_input()
721 struct eth_hdr *ethhdr; in pppoe_output() local
735 ethhdr->type = lwip_htons(etype); in pppoe_output()
736 MEMCPY(&ethhdr->dest.addr, &sc->sc_dest.addr, sizeof(ethhdr->dest.addr)); in pppoe_output()
737 MEMCPY(&ethhdr->src.addr, &sc->sc_ethif->hwaddr, sizeof(ethhdr->src.addr)); in pppoe_output()
1032 struct eth_hdr *ethhdr; in pppoe_send_padt() local
1045 MEMCPY(&ethhdr->dest.addr, dest, sizeof(ethhdr->dest.addr)); in pppoe_send_padt()
1046 MEMCPY(&ethhdr->src.addr, &outgoing_if->hwaddr, sizeof(ethhdr->src.addr)); in pppoe_send_padt()
[all …]
/components/net/lwip/lwip-2.1.2/src/netif/ppp/
A Dpppoe.c390 struct eth_hdr *ethhdr; in pppoe_disc_input() local
400 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_disc_input()
415 ph = (struct pppoehdr *) (ethhdr + 1); in pppoe_disc_input()
723 struct eth_hdr *ethhdr; in pppoe_output() local
737 ethhdr->type = lwip_htons(etype); in pppoe_output()
738 MEMCPY(&ethhdr->dest.addr, &sc->sc_dest.addr, sizeof(ethhdr->dest.addr)); in pppoe_output()
739 MEMCPY(&ethhdr->src.addr, &sc->sc_ethif->hwaddr, sizeof(ethhdr->src.addr)); in pppoe_output()
1037 struct eth_hdr *ethhdr; in pppoe_send_padt() local
1055 MEMCPY(&ethhdr->dest.addr, dest, sizeof(ethhdr->dest.addr)); in pppoe_send_padt()
1056 MEMCPY(&ethhdr->src.addr, &outgoing_if->hwaddr, sizeof(ethhdr->src.addr)); in pppoe_send_padt()
[all …]
/components/net/lwip-dhcpd/
A Ddhcp_server.c126 struct eth_hdr *ethhdr; in _low_level_dhcp_send() local
136 ethhdr = (struct eth_hdr *)p->payload; in _low_level_dhcp_send()
137 iphdr = (struct ip_hdr *)((char *)ethhdr + SIZEOF_ETH_HDR); in _low_level_dhcp_send()
140 ETHADDR32_COPY(&ethhdr->dest, (struct eth_addr *)&ethbroadcast); in _low_level_dhcp_send()
141 ETHADDR16_COPY(&ethhdr->src, netif->hwaddr); in _low_level_dhcp_send()
142 ethhdr->type = PP_HTONS(ETHTYPE_IP); in _low_level_dhcp_send()
/components/net/lwip/lwip-1.4.1/
A DCHANGELOG2235 pointing to ethhdr) if the netif got the NETIF_FLAG_ETHARP flag. Else, packets
/components/net/lwip/lwip-2.0.3/
A DCHANGELOG3191 pointing to ethhdr) if the netif got the NETIF_FLAG_ETHARP flag. Else, packets
/components/net/lwip/lwip-2.1.2/
A DCHANGELOG3444 pointing to ethhdr) if the netif got the NETIF_FLAG_ETHARP flag. Else, packets

Completed in 32 milliseconds