Lines Matching refs:p

96 ip_forward(struct pbuf *p, struct ip_hdr *iphdr)
109 pbuf_free(p);
117 icmp_time_exceeded(p, ICMP_TE_TTL);
120 pbuf_free(p);
143 netif->output(netif, p, (struct ip_addr *)&(iphdr->dest));
157 ip_input(struct pbuf *p, struct netif *inp) {
165 ip_debug_print(p);
172 iphdr = p->payload;
178 ip_debug_print(p);
180 pbuf_free(p);
204 ip_forward(p, iphdr);
206 pbuf_free(p);
210 pbuf_realloc(p, IP_HLEN + ntohs(iphdr->len));
215 ip_debug_print(p);
216 LWIP_DEBUGF("ip_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len);*/
219 if(pbuf_header(p, -IP_HLEN)) {
226 udp_input(p, inp);
229 tcp_input(p, inp);
233 icmp_input(p, inp);
239 icmp_dest_unreach(p, ICMP_DUR_PROTO);
241 pbuf_free(p);
260 ip_output_if (struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
268 LWIP_DEBUGF(IP_DEBUG, ("len %"U16_F" tot_len %"U16_F"\n", p->len, p->tot_len));
269 if (pbuf_header(p, IP_HLEN)) {
275 LWIP_DEBUGF(IP_DEBUG, ("len %"U16_F" tot_len %"U16_F"\n", p->len, p->tot_len));
277 iphdr = p->payload;
284 iphdr->len = htons(p->tot_len - IP_HLEN);
301 LWIP_DEBUGF(IP_DEBUG, ("ip_output_if: %c%c (len %"U16_F")\n", netif->name[0], netif->name[1], p->tot_len));
303 ip_debug_print(p);
307 return netif->output(netif, p, dest);
317 ip_output(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
327 return ip_output_if (p, src, dest, ttl, proto, netif);
332 ip_output_hinted(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
345 err = ip_output_if(p, src, dest, ttl, tos, proto, netif);
354 ip_debug_print(struct pbuf *p)
356 struct ip_hdr *iphdr = p->payload;