Lines Matching refs:ethhdr
389 struct eth_hdr *ethhdr;
399 if (pb->len < sizeof(*ethhdr)) {
402 ethhdr = (struct eth_hdr *)pb->payload;
403 off = sizeof(*ethhdr);
417 ph = (struct pppoehdr *) (ethhdr + 1);
601 MEMCPY(&sc->sc_dest, ethhdr->src.addr, sizeof(sc->sc_dest.addr));
721 struct eth_hdr *ethhdr;
733 ethhdr = (struct eth_hdr *)pb->payload;
735 ethhdr->type = lwip_htons(etype);
736 MEMCPY(ðhdr->dest.addr, &sc->sc_dest.addr, sizeof(ethhdr->dest.addr));
737 MEMCPY(ðhdr->src.addr, &sc->sc_ethif->hwaddr, sizeof(ethhdr->src.addr));
1032 struct eth_hdr *ethhdr;
1043 ethhdr = (struct eth_hdr *)pb->payload;
1044 ethhdr->type = PP_HTONS(ETHTYPE_PPPOEDISC);
1045 MEMCPY(ðhdr->dest.addr, dest, sizeof(ethhdr->dest.addr));
1046 MEMCPY(ðhdr->src.addr, &outgoing_if->hwaddr, sizeof(ethhdr->src.addr));
1048 p = (u8_t*)(ethhdr + 1);