[component][net]add more socket flag

This commit is contained in:
zms123456
2024-09-14 05:30:24 +08:00
committed by GitHub
parent 49c39d4a8d
commit fb02e7934d
2 changed files with 25 additions and 0 deletions

View File

@@ -41,6 +41,10 @@
#define INTF_SO_SNDBUF 7
#define INTF_SO_SNDLOWAT 19
#define INTF_SO_RCVLOWAT 18
#define INTF_SO_BINDTODEVICE 25
#define INTF_SO_TIMESTAMPNS 35
#define INTF_SO_TIMESTAMPING 37
#define INTF_SO_SELECT_ERR_QUEUE 45
#define IMPL_SO_BROADCAST 0x0020
#define IMPL_SO_KEEPALIVE 0x0008
@@ -59,6 +63,10 @@
#define IMPL_SO_SNDBUF 0x1001
#define IMPL_SO_SNDLOWAT 0x1003
#define IMPL_SO_RCVLOWAT 0x1004
#define IMPL_SO_BINDTODEVICE 0x100b
#define IMPL_SO_TIMESTAMPNS INTF_SO_TIMESTAMPNS
#define IMPL_SO_TIMESTAMPING INTF_SO_TIMESTAMPING
#define IMPL_SO_SELECT_ERR_QUEUE INTF_SO_SELECT_ERR_QUEUE
/* IPPROTO_IP option names */
#define INTF_IP_TTL 2