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: <1375283370.10515.100.camel@edumazet-glaptop>
Date:	Wed, 31 Jul 2013 08:09:30 -0700
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Daniel Borkmann <dborkman@...hat.com>
Cc:	Ronny Meeus <ronny.meeus@...il.com>,
	netdev <netdev@...r.kernel.org>
Subject: Re: How do I receive vlan tags on an AF_PACKET socket in 3.4 kernel?

On Wed, 2013-07-31 at 16:42 +0200, Daniel Borkmann wrote:

> You can use bpfc (git://github.com/borkmann/netsniff-ng.git), it also has
> an extensive man page. That should probably do it:
> 
> $ cat foo
> ld vlant
> jneq #4094, drop
> ret #-1
> drop: ret #0
> 
> $ bpfc foo
> { 0x20, 0, 0, 0xfffff02c },
> { 0x15, 0, 1, 0x00000ffe },
> { 0x6, 0, 0, 0xffffffff },
> { 0x6, 0, 0, 0x00000000 },

Thanks Daniel.

If the load of this BPF fails (because its an old kernel), then load
your old filter.



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ