raw_new_ip_type() function
Create a RAW PCB for specific IP type. @see raw_remove()
Arguments
type
IP address type, see
lwip_ip_addr_type
definitions. If you want to listen to IPv4 and IPv6 (dual-stack) packets, supply IPADDR_TYPE_ANY as argument and bind to
IP_ANY_TYPE
.
proto
the protocol number (next header) of the IPv6 packet payload (e.g. IP6_NEXTH_ICMP6)
Return value
The RAW PCB which was created. NULL if the PCB data structure could not be allocated.