Lines Matching refs:ethhdr
301 struct eth_hdr *ethhdr;
308 if (pb->len < sizeof(*ethhdr)) {
311 ethhdr = (struct eth_hdr *)pb->payload;
312 off = sizeof(*ethhdr);
326 ph = (struct pppoehdr *) (ethhdr + 1);
508 MEMCPY(&sc->sc_dest, ethhdr->src.addr, sizeof(sc->sc_dest.addr));
639 struct eth_hdr *ethhdr;
648 ethhdr = (struct eth_hdr *)pb->payload;
650 ethhdr->type = htons(etype);
651 MEMCPY(ethhdr->dest.addr, sc->sc_dest.addr, sizeof(ethhdr->dest.addr));
652 MEMCPY(ethhdr->src.addr, ((struct eth_addr *)sc->sc_ethif->hwaddr)->addr, sizeof(ethhdr->src.addr));
950 struct eth_hdr *ethhdr;
960 ethhdr = (struct eth_hdr *)pb->payload;
961 ethhdr->type = PP_HTONS(ETHTYPE_PPPOEDISC);
962 MEMCPY(ethhdr->dest.addr, dest, sizeof(ethhdr->dest.addr));
963 MEMCPY(ethhdr->src.addr, ((struct eth_addr *)outgoing_if->hwaddr)->addr, sizeof(ethhdr->src.addr));
965 p = (u8_t*)(ethhdr + 1);