[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180625.163126.1464757436422028440.davem@davemloft.net>
Date: Mon, 25 Jun 2018 16:31:26 +0900 (KST)
From: David Miller <davem@...emloft.net>
To: lucien.xin@...il.com
Cc: netdev@...r.kernel.org, linux-sctp@...r.kernel.org,
marcelo.leitner@...il.com, nhorman@...driver.com
Subject: Re: [PATCH net-next 3/5] sctp: add spp_ipv6_flowlabel and spp_dscp
for sctp_paddrparams
From: Xin Long <lucien.xin@...il.com>
Date: Mon, 25 Jun 2018 10:14:35 +0800
> struct sctp_paddrparams {
> @@ -773,6 +775,8 @@ struct sctp_paddrparams {
> __u32 spp_pathmtu;
> __u32 spp_sackdelay;
> __u32 spp_flags;
> + __u32 spp_ipv6_flowlabel;
> + __u8 spp_dscp;
> } __attribute__((packed, aligned(4)));
I don't think you can change the size of this structure like this.
This check in sctp_setsockopt_peer_addr_params():
if (optlen != sizeof(struct sctp_paddrparams))
return -EINVAL;
is going to trigger in old kernels when executing programs
built against the new struct definition.
Powered by blists - more mailing lists