Lines Matching defs:ethhdr
387 struct eth_hdr *ethhdr;
397 ethhdr = (struct eth_hdr *)pb->payload;
412 ph = (struct pppoehdr *) (ethhdr + 1);
599 MEMCPY(&sc->sc_dest, ethhdr->src.addr, sizeof(sc->sc_dest.addr));
720 struct eth_hdr *ethhdr;
732 ethhdr = (struct eth_hdr *)pb->payload;
734 ethhdr->type = lwip_htons(etype);
735 MEMCPY(ðhdr->dest.addr, &sc->sc_dest.addr, sizeof(ethhdr->dest.addr));
736 MEMCPY(ðhdr->src.addr, &sc->sc_ethif->hwaddr, sizeof(ethhdr->src.addr));
1034 struct eth_hdr *ethhdr;
1050 ethhdr = (struct eth_hdr *)pb->payload;
1051 ethhdr->type = PP_HTONS(ETHTYPE_PPPOEDISC);
1052 MEMCPY(ðhdr->dest.addr, dest, sizeof(ethhdr->dest.addr));
1053 MEMCPY(ðhdr->src.addr, &outgoing_if->hwaddr, sizeof(ethhdr->src.addr));
1055 p = (u8_t*)(ethhdr + 1);