Restrictions on Sent PacketsRestrictions on Sent Packets
Packets sent on a safe raw socket will be rejected if any of the
following is true:
If IP_HDRINCL was set on the socket:
The source IP address of the packet is a non-local address. (If the
source address is left blank, then the kernel will fill it in.)
The protocol in the IP header is not the protocol specified when the
socket was created
If the safe raw socket is a TCP/UDP socket:
If the safe raw socket is an ICMP socket: