From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2178) id CD88B388217A; Tue, 28 Nov 2023 12:45:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD88B388217A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701175507; bh=RMVZdJWXRgQzk1qtZ5CkqWpt2GbucKMB6z6tLlxm+Jo=; h=From:To:Subject:Date:From; b=o2yyqHBbzXpaJ5DildRqXsakbkCNa6V/q1A+PYytAOhEgmkaeVNAuWLBXOzmP48oB tF9ebmOCO+WcRc0HkdjagGniFsQvgP5gXpGkrzHgUuziFoJ/mvkcm9Dyr/7GDfXONz Du+Px4RlLXHC7QWiGYgjGzLTiwQLowXsnRLpoKsI= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc] Add TCP_MD5SIG_FLAG_IFINDEX from Linux 5.6 to netinet/tcp.h. X-Act-Checkin: glibc X-Git-Author: Tobias Klauser X-Git-Refname: refs/heads/master X-Git-Oldrev: 78ca44da0160a0b442f0ca1f253e3360f044b2ec X-Git-Newrev: 06bbe63e367abd5f7b225cbae30d1e487f237c85 Message-Id: <20231128124507.CD88B388217A@sourceware.org> Date: Tue, 28 Nov 2023 12:45:07 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=06bbe63e367abd5f7b225cbae30d1e487f237c85 commit 06bbe63e367abd5f7b225cbae30d1e487f237c85 Author: Tobias Klauser Date: Tue Nov 28 12:06:43 2023 +0100 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 Diff: --- 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 1793724642..b2acbb4350 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). */ };