diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-04-05 01:16:45 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-05 09:50:48 +0200 |
commit | 77191d82dc07319458442ff9905139e5789c9168 (patch) | |
tree | 45743d9a15bfae09be1eec6cffb1cdb38738270c /Kernel/UnixTypes.h | |
parent | 7d0bf9b5a9b635eb54f34843d17ea38d7c18092e (diff) | |
download | serenity-77191d82dc07319458442ff9905139e5789c9168.zip |
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 :^)
Diffstat (limited to 'Kernel/UnixTypes.h')
-rw-r--r-- | Kernel/UnixTypes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/UnixTypes.h b/Kernel/UnixTypes.h index 9706cbd9f2..d7eab8cf5f 100644 --- a/Kernel/UnixTypes.h +++ b/Kernel/UnixTypes.h @@ -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 |