Made raw_input() more generic allowing multiple matches until someone eats the packet.

This commit is contained in:
likewise
2004-05-05 13:27:27 +00:00
parent 4eadc22a36
commit ed201c35d2
2 changed files with 66 additions and 52 deletions

View File

@@ -63,11 +63,11 @@ void raw_recv (struct raw_pcb *pcb,
struct pbuf *p,
struct ip_addr *addr),
void *recv_arg);
err_t raw_send_to (struct raw_pcb *pcb, struct pbuf *p, struct ip_addr *ipaddr);
err_t raw_sendto (struct raw_pcb *pcb, struct pbuf *p, struct ip_addr *ipaddr);
err_t raw_send (struct raw_pcb *pcb, struct pbuf *p);
/* The following functions are the lower layer interface to RAW. */
int raw_input (struct pbuf *p, struct netif *inp);
u8_t raw_input (struct pbuf *p, struct netif *inp);
void raw_init (void);