提交 5b2b682d 编写于 作者: S Szabolcs Nagy 提交者: Rich Felker

sys/socket.h: add SO_BINDTOIFINDEX from linux v5.1

SO_BINDTOIFINDEX behaves similar to SO_BINDTODEVICE, but takes a
network interface index as argument, rather than the network
interface name. see

  linux commit f5dd3d0c9638a9d9a02b5964c4ad636f06cf7e2c
  net: introduce SO_BINDTOIFINDEX sockopt
上级 45235051
...@@ -237,6 +237,7 @@ struct linger { ...@@ -237,6 +237,7 @@ struct linger {
#define SO_ZEROCOPY 60 #define SO_ZEROCOPY 60
#define SO_TXTIME 61 #define SO_TXTIME 61
#define SCM_TXTIME SO_TXTIME #define SCM_TXTIME SO_TXTIME
#define SO_BINDTOIFINDEX 62
#ifndef SOL_SOCKET #ifndef SOL_SOCKET
#define SOL_SOCKET 1 #define SOL_SOCKET 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册