lwip/core/raw.c
/**
 * Set the callback function if a RAW packet with the pcb's protocol
 * is received. If the callback function returns a value unequal 0
 * the raw packet is "eaten" and not forwarded to any other raw pcb
 * including lwip itself
 */
Set the callback function if a RAW packet with the pcb's protocol
is received. If the callback function returns a value unequal 0
the raw packet is "eaten" and not forwarded to any other raw pcb
including lwip itself
Set the callback function if a RAW packet with the pcb ' s protocol is received . If the callback function returns a value unequal 0 the raw packet is " eaten " and not forwarded to any other raw pcb including lwip itself
void
raw_recv(struct raw_pcb *pcb,
         int (* recv)(void *arg, struct raw_pcb *upcb, struct pbuf *p,
                      struct ip_addr *addr),
         void *recv_arg)
{
  pcb->recv = recv;
  pcb->recv_arg = recv_arg;
}
void raw_recv ( struct raw_pcb * pcb , int ( * recv ) ( void * arg , struct raw_pcb * upcb , struct pbuf * p , struct ip_addr * addr ) , void * recv_arg ) { pcb -> recv = recv ; pcb -> recv_arg = recv_arg ; }
Set the callback function if a RAW packet with the pcb's protocol
 is received.
Set the callback function if a RAW packet with the pcb ' s protocol is received .
/* remember recv() callback and user data */