lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJieiUgZpBFs5RJD=AAssLqSxJsFuEMHXCAsQyO=dxe4OpSVGQ@mail.gmail.com>
Date:   Sun, 25 Feb 2018 19:40:34 -0800
From:   Roopa Prabhu <roopa@...ulusnetworks.com>
To:     David Ahern <dsa@...ulusnetworks.com>
Cc:     David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
        Nikolay Aleksandrov <nikolay@...ulusnetworks.com>,
        Ido Schimmel <idosch@...lanox.com>
Subject: Re: [PATCH net-next 5/5] ipv6: route: dissect flow in input path if
 fib rules need it

On Sun, Feb 25, 2018 at 7:19 PM, David Ahern <dsa@...ulusnetworks.com> wrote:
> On 2/24/18 10:44 PM, Roopa Prabhu wrote:
>
>> @@ -1847,12 +1858,27 @@ void ip6_route_input(struct sk_buff *skb)
>>               .flowi6_mark = skb->mark,
>>               .flowi6_proto = iph->nexthdr,
>>       };
>> +     struct flow_keys *flkeys = NULL, _flkeys;
>>
>>       tun_info = skb_tunnel_info(skb);
>>       if (tun_info && !(tun_info->mode & IP_TUNNEL_INFO_TX))
>>               fl6.flowi6_tun_key.tun_id = tun_info->key.tun_id;
>> +
>> +#ifdef CONFIG_IPV6_MULTIPLE_TABLES
>> +     if (net->ipv6.fib6_rules_require_fldissect) {
>> +             unsigned int flag = FLOW_DISSECTOR_F_STOP_AT_ENCAP;
>> +
>> +             memset(&_flkeys, 0, sizeof(_flkeys));
>> +             skb_flow_dissect_flow_keys(skb, &_flkeys, flag);
>> +             fl6.fl6_sport = _flkeys.ports.src;
>> +             fl6.fl6_dport = _flkeys.ports.dst;
>> +             fl6.flowi6_proto = _flkeys.basic.ip_proto;
>> +             flkeys = &_flkeys;
>> +     }
>> +#endif
>
> same here - helper versus inline.
>

ack

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ