Lines Matching refs:ethhdr
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()
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
960 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_send_padt()
961 ethhdr->type = PP_HTONS(ETHTYPE_PPPOEDISC); in pppoe_send_padt()
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()
965 p = (u8_t*)(ethhdr + 1); in pppoe_send_padt()