[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180411.124043.1093527105189345576.davem@davemloft.net>
Date: Wed, 11 Apr 2018 12:40:43 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: lucien.xin@...il.com
Cc: marcelo.leitner@...il.com, nhorman@...driver.com,
netdev@...r.kernel.org, linux-sctp@...r.kernel.org
Subject: Re: [PATCH net] sctp: do not check port in sctp_inet6_cmp_addr
From: Xin Long <lucien.xin@...il.com>
Date: Thu, 12 Apr 2018 00:16:58 +0800
> What do you think of:
>
> static int sctp_v6_cmp_addr(const union sctp_addr *addr1,
> const union sctp_addr *addr2)
> {
> return __sctp_v6_cmp_addr(addr1, addr2) &&
> addr1->v6.sin_port == addr2->v6.sin_port;
> }
>
> (v6.sin_port and v4.sin_port have the same offset in union sctp_addr,
> we've exploited this in many places in SCTP)
>From my perspective this is OK.
Powered by blists - more mailing lists