46 |
|
|
47 |
u16_t protocol; |
u16_t protocol; |
48 |
|
|
49 |
void (* recv)(void *arg, struct raw_pcb *pcb, struct pbuf *p, |
int (* recv)(void *arg, struct raw_pcb *pcb, struct pbuf *p, |
50 |
struct ip_addr *addr); |
struct ip_addr *addr); |
51 |
void *recv_arg; |
void *recv_arg; |
52 |
}; |
}; |
56 |
struct raw_pcb * raw_new (u16_t proto); |
struct raw_pcb * raw_new (u16_t proto); |
57 |
void raw_remove (struct raw_pcb *pcb); |
void raw_remove (struct raw_pcb *pcb); |
58 |
err_t raw_bind (struct raw_pcb *pcb, struct ip_addr *ipaddr); |
err_t raw_bind (struct raw_pcb *pcb, struct ip_addr *ipaddr); |
59 |
|
err_t raw_connect (struct raw_pcb *pcb, struct ip_addr *ipaddr); |
60 |
|
|
61 |
void raw_recv (struct raw_pcb *pcb, |
void raw_recv (struct raw_pcb *pcb, |
62 |
void (* recv)(void *arg, struct raw_pcb *pcb, |
int (* recv)(void *arg, struct raw_pcb *pcb, |
63 |
struct pbuf *p, |
struct pbuf *p, |
64 |
struct ip_addr *addr), |
struct ip_addr *addr), |
65 |
void *recv_arg); |
void *recv_arg); |
66 |
err_t raw_send_payload (struct raw_pcb *pcb, struct pbuf *p, struct ip_addr *ipaddr); |
err_t raw_send_to (struct raw_pcb *pcb, struct pbuf *p, struct ip_addr *ipaddr); |
67 |
|
err_t raw_send (struct raw_pcb *pcb, struct pbuf *p); |
68 |
|
|
69 |
/* The following functions are the lower layer interface to RAW. */ |
/* The following functions are the lower layer interface to RAW. */ |
70 |
int raw_input (struct pbuf *p, struct netif *inp); |
int raw_input (struct pbuf *p, struct netif *inp); |