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:
zhanghongyu
2023-04-21 17:42:57 +08:00
committed by Alin Jerpelea
parent 5a553db88a
commit e10fda570b
6 changed files with 30 additions and 34 deletions
+3 -3
View File
@@ -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 */
+1 -1
View File
@@ -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