Add TCP_MD5SIG_FLAG_IFINDEX from Linux 5.6 to netinet/tcp.h.
Checks
Context |
Check |
Description |
redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
redhat-pt-bot/TryBot-32bit |
success
|
Build for i686
|
linaro-tcwg-bot/tcwg_glibc_build--master-arm |
warning
|
Patch is already merged
|
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
warning
|
Patch is already merged
|
Commit Message
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.
---
sysdeps/gnu/netinet/tcp.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
* Tobias Klauser:
> 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.
> ---
> sysdeps/gnu/netinet/tcp.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/sysdeps/gnu/netinet/tcp.h b/sysdeps/gnu/netinet/tcp.h
> index 17937246428e..b2acbb435082 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). */
> };
Reviewed-by: Florian Weimer <fweimer@redhat.com>
And pushed.
Thanks,
Florian
@@ -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). */
};