mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
Kernel: Add the SO_BINDTODEVICE socket option
This patch adds a way for a socket to ask to be routed through a specific interface. Currently, this option only applies to sending, however, it should also apply to receiving...somehow :^)
This commit is contained in:
parent
7d0bf9b5a9
commit
77191d82dc
10 changed files with 186 additions and 13 deletions
|
@ -401,6 +401,7 @@ struct pollfd {
|
|||
#define SO_ERROR 4
|
||||
#define SO_PEERCRED 5
|
||||
#define SO_REUSEADDR 6
|
||||
#define SO_BINDTODEVICE 7
|
||||
|
||||
#define IPPROTO_IP 0
|
||||
#define IPPROTO_ICMP 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue