projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4523505
)
sys/socket.h: add SO_BINDTOIFINDEX from linux v5.1
author
Szabolcs Nagy
<nsz@port70.net>
Sat, 29 Jun 2019 21:13:18 +0000
(21:13 +0000)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 1 Jul 2019 18:12:36 +0000
(14:12 -0400)
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
include/sys/socket.h
patch
|
blob
|
history
diff --git
a/include/sys/socket.h
b/include/sys/socket.h
index cd38a4c81ed1ccca49ac952536a19261ea308b1f..8692efa7ad6474a7ce6dc1dc850f2e1097a2300d 100644
(file)
--- a/
include/sys/socket.h
+++ b/
include/sys/socket.h
@@
-237,6
+237,7
@@
struct linger {
#define SO_ZEROCOPY 60
#define SO_TXTIME 61
#define SCM_TXTIME SO_TXTIME
+#define SO_BINDTOIFINDEX 62
#ifndef SOL_SOCKET
#define SOL_SOCKET 1