Lines Matching refs:p
66 * @param p pbuf to be demultiplexed to a RAW PCB.
76 raw_input(struct pbuf *p, struct netif *inp)
85 iphdr = (struct ip_hdr *)p->payload;
104 if (pcb->recv(pcb->recv_arg, pcb, p, ip_current_src_addr()) != 0) {
106 p = NULL;
198 * @param p the IP payload to send
203 raw_sendto(struct raw_pcb *pcb, struct pbuf *p, ip_addr_t *ipaddr)
212 /* not enough space to add an IP header to first pbuf in given p chain? */
213 if (pbuf_header(p, IP_HLEN)) {
221 if (p->tot_len != 0) {
222 /* chain header q in front of given pbuf p */
223 pbuf_chain(q, p);
226 LWIP_DEBUGF(RAW_DEBUG, ("raw_sendto: added header pbuf %p before given pbuf %p\n", (void *)q, (void *)p));
229 q = p;
240 if (q != p) {
249 LWIP_DEBUGF(RAW_DEBUG | LWIP_DBG_LEVEL_WARNING, ("raw_sendto: SOF_BROADCAST not enabled on pcb %p\n", (void *)pcb));
251 if (q != p) {
271 if (q != p) {
282 * @param p the IP payload to send
286 raw_send(struct raw_pcb *pcb, struct pbuf *p)
288 return raw_sendto(pcb, p, &pcb->remote_ip);