Lines Matching refs:eth_hdr

301   struct eth_hdr *ethhdr;  in pppoe_dispatch_disc_pkt()
311 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_dispatch_disc_pkt()
571 MEMCPY(shost, ((struct eth_hdr *)pb->payload)->src.addr, sizeof(shost)); in pppoe_data_input()
573 if (pbuf_header(pb, -(int)sizeof(struct eth_hdr)) != 0) { in pppoe_data_input()
639 struct eth_hdr *ethhdr; in pppoe_output()
648 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_output()
694 sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len <= 0xffff); in pppoe_send_padi()
697 pb = pbuf_alloc(PBUF_LINK, (u16_t)(sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len), PBUF_RAM); in pppoe_send_padi()
703 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_padi()
913 sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len <= 0xffff); in pppoe_send_padr()
914 pb = pbuf_alloc(PBUF_LINK, (u16_t)(sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len), PBUF_RAM); in pppoe_send_padr()
919 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_padr()
950 struct eth_hdr *ethhdr; in pppoe_send_padt()
954 pb = pbuf_alloc(PBUF_LINK, sizeof(struct eth_hdr) + PPPOE_HEADERLEN, PBUF_RAM); in pppoe_send_padt()
960 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_send_padt()
993 pb = pbuf_alloc(PBUF_LINK, sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len, PBUF_RAM); in pppoe_send_pado()
998 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_pado()
1030 pb = pbuf_alloc(PBUF_LINK, sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len, PBUF_RAM); in pppoe_send_pads()
1035 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_pads()
1068 if (pbuf_header(pb, sizeof(struct eth_hdr) + PPPOE_HEADERLEN) != 0) { in pppoe_xmit()
1076 p = (u8_t*)pb->payload + sizeof(struct eth_hdr); in pppoe_xmit()