Lines Matching refs:eth_hdr
301 struct eth_hdr *ethhdr;
311 ethhdr = (struct eth_hdr *)pb->payload;
571 MEMCPY(shost, ((struct eth_hdr *)pb->payload)->src.addr, sizeof(shost));
573 if (pbuf_header(pb, -(int)sizeof(struct eth_hdr)) != 0) {
639 struct eth_hdr *ethhdr;
648 ethhdr = (struct eth_hdr *)pb->payload;
693 LWIP_ASSERT("sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len <= 0xffff",
694 sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len <= 0xffff);
697 pb = pbuf_alloc(PBUF_LINK, (u16_t)(sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len), PBUF_RAM);
703 p = (u8_t*)pb->payload + sizeof (struct eth_hdr);
912 LWIP_ASSERT("sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len <= 0xffff",
913 sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len <= 0xffff);
914 pb = pbuf_alloc(PBUF_LINK, (u16_t)(sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len), PBUF_RAM);
919 p = (u8_t*)pb->payload + sizeof (struct eth_hdr);
950 struct eth_hdr *ethhdr;
954 pb = pbuf_alloc(PBUF_LINK, sizeof(struct eth_hdr) + PPPOE_HEADERLEN, PBUF_RAM);
960 ethhdr = (struct eth_hdr *)pb->payload;
993 pb = pbuf_alloc(PBUF_LINK, sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len, PBUF_RAM);
998 p = (u8_t*)pb->payload + sizeof (struct eth_hdr);
1030 pb = pbuf_alloc(PBUF_LINK, sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len, PBUF_RAM);
1035 p = (u8_t*)pb->payload + sizeof (struct eth_hdr);
1068 if (pbuf_header(pb, sizeof(struct eth_hdr) + PPPOE_HEADERLEN) != 0) {
1076 p = (u8_t*)pb->payload + sizeof(struct eth_hdr);