mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
udp: change PKTINFO flag to socket_conn_s struct
move the IPPROTO_IP/IPPROTO_IPV6 flag into the socket_conn_s structure to make it more than just control udp. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
5a553db88a
commit
e10fda570b
@@ -126,10 +126,10 @@
|
||||
#define IPV6_UNICAST_HOPS (__SO_PROTOCOL + 6) /* Unicast hop limit */
|
||||
#define IPV6_V6ONLY (__SO_PROTOCOL + 7) /* Restrict AF_INET6 socket
|
||||
* to IPv6 communications only */
|
||||
#define IPV6_PKTINFO (__SO_PROTOCOL + 8) /* Get some information about
|
||||
#define IPV6_PKTINFO (__SO_PROTOCOL + 8) /* Information about the
|
||||
* incoming packet */
|
||||
#define IPV6_RECVPKTINFO (__SO_PROTOCOL + 9) /* Receive the information about
|
||||
* the incoming packet */
|
||||
#define IPV6_RECVPKTINFO (__SO_PROTOCOL + 9) /* It functions just same as
|
||||
* IPV6_PKTINFO for now */
|
||||
#define IPV6_TCLASS (__SO_PROTOCOL + 10) /* Access the Traffic Class
|
||||
* field */
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ enum net_lltype_e
|
||||
|
||||
/* This defines a bitmap big enough for one bit for each socket option */
|
||||
|
||||
typedef uint16_t sockopt_t;
|
||||
typedef uint32_t sockopt_t;
|
||||
|
||||
/* This defines the storage size of a timeout value. This effects only
|
||||
* range of supported timeout values. With an LSB in seciseconds, the
|
||||
|
||||
Reference in New Issue
Block a user