Home
last modified time | relevance | path

Searched refs:pbuf_header (Results 1 – 18 of 18) sorted by relevance

/lib/liblwip/src/core/ipv4/
Dicmp.c93 if (pbuf_header(p, -hlen) || (p->tot_len < sizeof(u16_t)*2)) { in icmp_input()
145 if (pbuf_header(p, (PBUF_IP_HLEN + PBUF_LINK_HLEN))) { in icmp_input()
151 if (pbuf_header(p, hlen)) { in icmp_input()
170 if (pbuf_header(r, -hlen)) { in icmp_input()
180 if (pbuf_header(p, -(s16_t)(PBUF_IP_HLEN + PBUF_LINK_HLEN))) { in icmp_input()
217 if(pbuf_header(p, hlen)) { in icmp_input()
Dip_frag.c591 pbuf_header(r, -IP_HLEN); in ip_reass()
746 if(pbuf_header(rambuf, IP_HLEN)) { in ip_frag()
Dip.c685 if (pbuf_header(p, optlen_aligned)) {
704 if (pbuf_header(p, IP_HLEN)) {
Digmp.c400 if (pbuf_header(p, -(s16_t)(IPH_HL(iphdr) * 4)) || (p->len < IGMP_MINLEN)) { in igmp_input()
/lib/liblwip/src/netif/
Dethernetif.c131 pbuf_header(p, -ETH_PAD_SIZE); /* drop the padding word */
144 pbuf_header(p, ETH_PAD_SIZE); /* reclaim the padding word */
181 pbuf_header(p, -ETH_PAD_SIZE); /* drop the padding word */
200 pbuf_header(p, ETH_PAD_SIZE); /* reclaim the padding word */
Detharp.c890 if (pbuf_header(q, sizeof(struct eth_hdr)) != 0) {
1358 if(pbuf_header(p, -ip_hdr_offset)) {
/lib/liblwip/test/unit/tcp/
Dtcp_helper.c73 pbuf_header(p, -(s16_t)sizeof(struct ip_hdr)); in tcp_create_segment_wnd()
86 pbuf_header(p, -(s16_t)sizeof(struct tcp_hdr)); in tcp_create_segment_wnd()
90 pbuf_header(p, sizeof(struct tcp_hdr)); in tcp_create_segment_wnd()
98 pbuf_header(p, sizeof(struct ip_hdr)); in tcp_create_segment_wnd()
/lib/liblwip/src/core/
Dudp.c169 if (p->tot_len < (IPH_HL(iphdr) * 4 + UDP_HLEN) || pbuf_header(p, -(s16_t)(IPH_HL(iphdr) * 4))) {
342 if(pbuf_header(p, -UDP_HLEN)) {
378 pbuf_header(p, (s16_t)((IPH_HL(iphdr) * 4) + UDP_HLEN));
386 pbuf_header(q, -(s16_t)((IPH_HL(iphdr) * 4) + UDP_HLEN));
396 pbuf_header(p, -(s16_t)((IPH_HL(iphdr) * 4) + UDP_HLEN));
418 pbuf_header(p, (IPH_HL(iphdr) * 4) + UDP_HLEN);
588 if (pbuf_header(p, UDP_HLEN)) {
Draw.c213 if (pbuf_header(p, IP_HLEN)) { in raw_sendto()
230 if(pbuf_header(q, -IP_HLEN)) { in raw_sendto()
Dtcp_in.c116 if (pbuf_header(p, -((s16_t)(IPH_HL(iphdr) * 4))) || (p->tot_len < sizeof(struct tcp_hdr))) { in tcp_input()
148 if(pbuf_header(p, -(hdrlen * 4))){ in tcp_input()
1188 if(pbuf_header(p, (s16_t)-off)) { in tcp_receive()
1193 if(pbuf_header(inseg.p, (s16_t)-off)) { in tcp_receive()
Dpbuf.c511 pbuf_header(struct pbuf *p, s16_t header_size_increment) in pbuf_header() function
Dtcp_out.c185 if (pbuf_header(p, TCP_HLEN)) { in tcp_create_segment()
/lib/liblwip/src/netif/ppp/
Dvj.c378 if(pbuf_header(pb, -hlen)){ in vj_compress_tcp()
387 if(pbuf_header(pb, -hlen)) { in vj_compress_tcp()
589 if(pbuf_header(n0, -((s16_t)(vjlen)))) { in vj_uncompress_tcp()
605 if(pbuf_header(np, -cs->cs_hlen)) { in vj_uncompress_tcp()
625 if(pbuf_header(n0, cs->cs_hlen)) { in vj_uncompress_tcp()
Dppp.c783 pbuf_header(pb, -(s16_t)PPPOE_HDRLEN); in pppifOutputOverEthernet()
1048 pbuf_header(pb, -(s16_t)PPPOE_HDRLEN); in pppWriteOverEthernet()
1612 if(pbuf_header(nb, -(int)sizeof(struct pppInputHeader))) { in pppInput()
1702 if (pbuf_header(nb, sizeof(protocol))) { in pppInput()
1993 if (pbuf_header(pb, sizeof(*pih) - sizeof(inProtocol)) != 0) { in pppInProcOverEthernet()
Dppp_oe.c573 if (pbuf_header(pb, -(int)sizeof(struct eth_hdr)) != 0) { in pppoe_data_input()
613 if (pbuf_header(pb, -(int)(PPPOE_HEADERLEN)) != 0) { in pppoe_data_input()
1068 if (pbuf_header(pb, sizeof(struct eth_hdr) + PPPOE_HEADERLEN) != 0) { in pppoe_xmit()
/lib/liblwip/src/core/ipv6/
Dip6.c219 if(pbuf_header(p, -IP_HLEN)) { in ip_input()
269 if (pbuf_header(p, IP_HLEN)) { in ip_output_if()
/lib/liblwip/src/include/lwip/
Dpbuf.h153 u8_t pbuf_header(struct pbuf *p, s16_t header_size);
/lib/liblwip/
DCHANGELOG2577 * Fix all uses of pbuf_header to check the return value. In some
2596 * udp.c: Only try and use pbuf_header() to make space for headers if
2686 outside the region of the pbuf by pbuf_header()