[netsniff-ng] Re: [PATCH] netsniff-ng: Allow to specify compiled BPF from stdin

2015-11-10 Thread Tobias Klauser
On 2015-11-10 at 09:18:18 +0100, Vadim Kochan wrote: > On Tue, Nov 10, 2015 at 09:06:17AM +0100, Tobias Klauser wrote: > > On 2015-11-10 at 07:29:12 +0100, Vadim Kochan wrote: > > > Allow read compiled BPF instructions from stdin by via '-f -' option. > > >

[netsniff-ng] [PATCH v2] netsniff-ng: Allow to specify compiled BPF from stdin

2015-11-10 Thread Vadim Kochan
Allow read compiled BPF instructions from stdin by via '-f -' option. Signed-off-by: Vadim Kochan --- bpf.c | 9 +++-- netsniff-ng.8 | 5 +++-- netsniff-ng.c | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/bpf.c b/bpf.c index

[netsniff-ng] Re: [PATCH v2] netsniff-ng: Allow to specify compiled BPF from stdin

2015-11-10 Thread Tobias Klauser
On 2015-11-10 at 09:28:08 +0100, Vadim Kochan wrote: > Allow read compiled BPF instructions from stdin by via '-f -' option. > > Signed-off-by: Vadim Kochan Applied, thanks! -- You received this message because you are subscribed to the Google Groups

[netsniff-ng] Re: [PATCH] netsniff-ng: Allow to specify compiled BPF from stdin

2015-11-10 Thread Vadim Kochan
On Tue, Nov 10, 2015 at 09:06:17AM +0100, Tobias Klauser wrote: > On 2015-11-10 at 07:29:12 +0100, Vadim Kochan wrote: > > Allow read compiled BPF instructions from stdin by via '-f -' option. > > > > Signed-off-by: Vadim Kochan > > --- > > bpf.c |

[netsniff-ng] Re: [PATCH] bpfc, trafgen: Do not close stdin when "-" is specified

2015-11-10 Thread Tobias Klauser
On 2015-11-10 at 09:53:33 +0100, Vadim Kochan wrote: > Do not perform fclose for stdin fd. > > Signed-off-by: Vadim Kochan Applied, thanks. -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe

[netsniff-ng] [PATCH] bpfc, trafgen: Do not close stdin when "-" is specified

2015-11-10 Thread Vadim Kochan
Do not perform fclose for stdin fd. Signed-off-by: Vadim Kochan --- bpf_parser.y | 4 +++- trafgen_parser.y | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bpf_parser.y b/bpf_parser.y index 26ec125..0959f3d 100644 --- a/bpf_parser.y +++

[netsniff-ng] Re: [PATCH] netsniff-ng: Allow to specify compiled BPF from stdin

2015-11-10 Thread Vadim Kochan
On Tue, Nov 10, 2015 at 09:06:17AM +0100, Tobias Klauser wrote: > On 2015-11-10 at 07:29:12 +0100, Vadim Kochan wrote: > > Allow read compiled BPF instructions from stdin by via '-f -' option. > > > > Signed-off-by: Vadim Kochan > > --- > > bpf.c |

[netsniff-ng] [PATCH] bpfc: man: Add example how to filter rtnetlink by attributes

2015-11-10 Thread Vadim Kochan
Example shows how to filter rtnetlink messages by ifindex & oper state. Signed-off-by: Vadim Kochan --- bpfc.8 | 24 1 file changed, 24 insertions(+) diff --git a/bpfc.8 b/bpfc.8 index 1cde888..8a99e2e 100644 --- a/bpfc.8 +++ b/bpfc.8 @@ -305,6