diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2023-11-28 12:06:43 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-11-28 13:44:47 +0100 |
commit | 06bbe63e367abd5f7b225cbae30d1e487f237c85 (patch) | |
tree | c1b225a4eaa703f2b947c9437ca3fefcb0eedc1d /sysdeps/gnu | |
parent | 78ca44da0160a0b442f0ca1f253e3360f044b2ec (diff) | |
download | glibc-06bbe63e367abd5f7b225cbae30d1e487f237c85.zip glibc-06bbe63e367abd5f7b225cbae30d1e487f237c85.tar.gz glibc-06bbe63e367abd5f7b225cbae30d1e487f237c85.tar.bz2 |
Add TCP_MD5SIG_FLAG_IFINDEX from Linux 5.6 to netinet/tcp.h.
This patch adds the TCP_MD5SIG_FLAG_IFINDEX constant from Linux 5.6 to
sysdeps/gnu/netinet/tcp.h and updates struct tcp_md5sig accordingly to
contain the device index.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'sysdeps/gnu')
-rw-r--r-- | sysdeps/gnu/netinet/tcp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/gnu/netinet/tcp.h b/sysdeps/gnu/netinet/tcp.h index 1793724..b2acbb4 100644 --- a/sysdeps/gnu/netinet/tcp.h +++ b/sysdeps/gnu/netinet/tcp.h @@ -272,6 +272,7 @@ struct tcp_info /* tcp_md5sig extension flags for TCP_MD5SIG_EXT. */ #define TCP_MD5SIG_FLAG_PREFIX 1 /* Address prefix length. */ +#define TCP_MD5SIG_FLAG_IFINDEX 2 /* Ifindex set. */ struct tcp_md5sig { @@ -279,7 +280,7 @@ struct tcp_md5sig uint8_t tcpm_flags; /* Extension flags. */ uint8_t tcpm_prefixlen; /* Address prefix. */ uint16_t tcpm_keylen; /* Key length. */ - uint32_t __tcpm_pad; /* Zero. */ + int tcpm_ifindex; /* Device index for scope. */ uint8_t tcpm_key[TCP_MD5SIG_MAXKEYLEN]; /* Key (binary). */ }; |