[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 12 Dec 2020 08:49:41 +0100
From: Jonas Bonn <jonas@...rbonn.se>
To: Pravin Shelar <pravin.ovn@...il.com>
Cc: Linux Kernel Network Developers <netdev@...r.kernel.org>,
Pablo Neira Ayuso <pablo@...filter.org>, laforge@...monks.org
Subject: Re: [PATCH net-next v2 07/12] gtp: use ephemeral source port
On 12/12/2020 06:35, Pravin Shelar wrote:
> On Fri, Dec 11, 2020 at 4:29 AM Jonas Bonn <jonas@...rbonn.se> wrote:
>> /* Read the IP destination address and resolve the PDP context.
>> @@ -527,6 +527,10 @@ static int gtp_xmit_ip4(struct sk_buff *skb, struct net_device *dev)
>> return -EMSGSIZE;
>> }
>>
>> + sport = udp_flow_src_port(sock_net(pctx->sk), skb,
>> + 0, USHRT_MAX,
>> + true);
>> +
> why use_eth is true for this is L3 GTP devices, Am missing something?
No, you are right. Will fix.
/Jonas
Powered by blists - more mailing lists