IP_RECVOPTS2const
Receive all incoming ip options in control message
Usage
#include <netinet/in.h> /* Definition of IP* constants */ #include <sys/socket.h>
int setsockopt(int sockfd, IPPROTO_IP, IP_RECVOPTS, const int *enable, sizeof(int));
Library
Standard C library (libc, -lc)
Overview
Pass all incoming IP options to the user in a IP_OPTIONS(2const) control message.
The routing header and other options are already filled in for the local host.
Not supported for SOCK_STREAM sockets.
Errors
See IPPROTO_IP(2const). See setsockopt(2). See ip(7).