57 #ifndef LWIP_HDR_RAW_H 58 #define LWIP_HDR_RAW_H 86 typedef u8_t (*raw_recv_fn)(
void *arg,
struct raw_pcb *pcb,
struct pbuf *p,
87 const ip_addr_t *addr);
111 struct raw_pcb * raw_new (u8_t proto);
112 struct raw_pcb * raw_new_ip_type(u8_t type, u8_t proto);
113 void raw_remove (
struct raw_pcb *pcb);
114 err_t raw_bind (
struct raw_pcb *pcb,
const ip_addr_t *ipaddr);
115 err_t raw_connect (
struct raw_pcb *pcb,
const ip_addr_t *ipaddr);
117 err_t raw_sendto (
struct raw_pcb *pcb,
struct pbuf *p,
const ip_addr_t *ipaddr);
118 err_t raw_send (
struct raw_pcb *pcb,
struct pbuf *p);
120 void raw_recv (
struct raw_pcb *pcb, raw_recv_fn recv,
void *recv_arg);
123 u8_t raw_input (
struct pbuf *p,
struct netif *inp);
126 void raw_netif_ip_addr_changed(
const ip_addr_t* old_addr,
const ip_addr_t* new_addr);
129 #define raw_new_ip6(proto) raw_new_ip_type(IPADDR_TYPE_V6, proto)