Thread (3 messages) 3 messages, 3 authors, 2017-08-03

Re: [iproute PATCH] bpf: Make bytecode-file reading a little more robust

flat view

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2017-08-03 22:59:45

On Wed,  2 Aug 2017 14:57:56 +0200
Phil Sutter [off-list ref] wrote:
bpf_parse_string() will now correctly handle:

- Extraneous whitespace,
- OPs on multiple lines and
- overlong file names.

The added feature of allowing to have OPs on multiple lines (like e.g.
tcpdump prints them) is rather a side effect of fixing detection of
malformed bytecode files having random content on a second line, like
e.g.:

| 4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0
| foobar

Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Looks good applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help