Lines Matching refs:p

88  * @param p received TCP segment to process (p->payload pointing to the IP header)
92 tcp_input(struct pbuf *p, struct netif *inp)
108 iphdr = (struct ip_hdr *)p->payload;
109 tcphdr = (struct tcp_hdr *)((u8_t *)p->payload + IPH_HL(iphdr) * 4);
116 if (pbuf_header(p, -((s16_t)(IPH_HL(iphdr) * 4))) || (p->tot_len < sizeof(struct tcp_hdr))) {
118 LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: short packet (%"U16_F" bytes) discarded\n", p->tot_len));
132 if (inet_chksum_pseudo(p, ip_current_src_addr(), ip_current_dest_addr(),
133 IP_PROTO_TCP, p->tot_len) != 0) {
135 inet_chksum_pseudo(p, ip_current_src_addr(), ip_current_dest_addr(),
136 IP_PROTO_TCP, p->tot_len)));
148 if(pbuf_header(p, -(hdrlen * 4))){
163 tcplen = p->tot_len + ((flags & (TCP_FIN | TCP_SYN)) ? 1 : 0);
208 pbuf_free(p);
259 pbuf_free(p);
281 inseg.len = p->tot_len;
282 inseg.p = p;
289 p->flags |= PBUF_FLAG_PUSH;
397 /* give up our reference to inseg.p */
398 if (inseg.p != NULL)
400 pbuf_free(inseg.p);
401 inseg.p = NULL;
415 pbuf_free(p);
424 pbuf_free(p);
827 pbuf_realloc(cseg->p, cseg->len);
853 struct pbuf *p;
1020 LWIP_ASSERT("pcb->snd_queuelen >= pbuf_clen(next->p)", (pcb->snd_queuelen >= pbuf_clen(next->p)));
1026 pcb->snd_queuelen -= pbuf_clen(next->p);
1070 LWIP_ASSERT("pcb->snd_queuelen >= pbuf_clen(next->p)", (pcb->snd_queuelen >= pbuf_clen(next->p)));
1075 pcb->snd_queuelen -= pbuf_clen(next->p);
1159 the pbuf chain is pointed to by inseg.p. Since we need to be
1161 inseg.p pointer to point to any of the later pbufs in the
1165 ->p pointer will still point to the first pbuf, but the
1166 ->p->payload pointer will point to data in another pbuf.
1173 p = inseg.p;
1174 LWIP_ASSERT("inseg.p != NULL", inseg.p);
1176 if (inseg.p->len < off) {
1177 LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off));
1178 new_tot_len = (u16_t)(inseg.p->tot_len - off);
1179 while (p->len < off) {
1180 off -= p->len;
1183 inseg.p->tot_len -= p->len; */
1184 p->tot_len = new_tot_len;
1185 p->len = 0;
1186 p = p->next;
1188 if(pbuf_header(p, (s16_t)-off)) {
1193 if(pbuf_header(inseg.p, (s16_t)-off)) {
1237 pbuf_realloc(inseg.p, inseg.len);
1285 pbuf_realloc(inseg.p, inseg.len);
1312 if (inseg.p->tot_len > 0) {
1313 recv_data = inseg.p;
1317 inseg.p = NULL;
1340 if (cseg->p->tot_len > 0) {
1344 pbuf_cat(recv_data, cseg->p);
1346 recv_data = cseg->p;
1348 cseg->p = NULL;
1442 pbuf_realloc(prev->p, prev->len);
1464 pbuf_realloc(next->p, next->len);
1479 pbuf_realloc(next->next->p, next->next->len);
1498 struct pbuf *p = next->p;
1499 ooseq_blen += p->tot_len;
1500 ooseq_qlen += pbuf_clen(p);