55#define RAW_FLAGS_CONNECTED 0x01U
56#define RAW_FLAGS_HDRINCL 0x02U
57#define RAW_FLAGS_MULTICAST_LOOP 0x04U
71typedef u8_t (*raw_recv_fn)(
void *
arg,
struct raw_pcb *pcb,
struct pbuf *
p,
84#if LWIP_MULTICAST_TX_OPTIONS
106void raw_remove (
struct raw_pcb *pcb);
108void raw_bind_netif (
struct raw_pcb *pcb,
const struct netif *
netif);
110void raw_disconnect (
struct raw_pcb *pcb);
114err_t raw_send (
struct raw_pcb *pcb,
struct pbuf *
p);
116void raw_recv (
struct raw_pcb *pcb, raw_recv_fn
recv,
void *recv_arg);
118#define raw_flags(pcb) ((pcb)->flags)
119#define raw_setflags(pcb,f) ((pcb)->flags = (f))
121#define raw_set_flags(pcb, set_flags) do { (pcb)->flags = (u8_t)((pcb)->flags | (set_flags)); } while(0)
122#define raw_clear_flags(pcb, clr_flags) do { (pcb)->flags = (u8_t)((pcb)->flags & (u8_t)(~(clr_flags) & 0xff)); } while(0)
123#define raw_is_flag_set(pcb, flag) (((pcb)->flags & (flag)) != 0)
128#define raw_new_ip6(proto) raw_new_ip_type(IPADDR_TYPE_V6, proto)
130#if LWIP_MULTICAST_TX_OPTIONS
131#define raw_set_multicast_netif_index(pcb, idx) ((pcb)->mcast_ifindex = (idx))
132#define raw_get_multicast_netif_index(pcb) ((pcb)->mcast_ifindex)
133#define raw_set_multicast_ttl(pcb, value) ((pcb)->mcast_ttl = (value))
134#define raw_get_multicast_ttl(pcb) ((pcb)->mcast_ttl)
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
GLuint GLuint GLsizei GLenum type
GLenum const GLvoid * addr
static unsigned __int64 next