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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 24 Jan 2019 03:59:30 -0800
From:   Maciej Żenczykowski <zenczykowski@...il.com>
To:     Daniel Borkmann <daniel@...earbox.net>
Cc:     Alexei Starovoitov <ast@...nel.org>,
        Linux NetDev <netdev@...r.kernel.org>
Subject: Re: eBPF equivalent of SKF_AD_HATYPE / skb->dev->type

Yeah, I'd like to be able to attach the same program to
cellular/wifi/ethernet(usb) interface at ingress.

I'll cook it up when I can, for now I'll just make do with 2 different
ones to handle the with/without ethernet header cases.

On Thu, Jan 24, 2019 at 3:40 AM Daniel Borkmann <daniel@...earbox.net> wrote:
>
> On 01/24/2019 12:27 PM, Maciej Żenczykowski wrote:
> > In classic BPF 'SKF_AD_HATYPE' can be used to fetch skb->dev->type.
> >
> > Are my eyes deceiving me, or is there a similar way to get at it from eBPF?
> >
> > (while we're at it, skb->dev->mtu would probably be useful too)
>
> Yeah we can add it if you have a concrete use case for access out of the BPF
> program, feel free to send a patch. So far nobody ran into the need for it
> which is why it hasn't been added yet.
>
> Thanks,
> Daniel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ