[netsniff-ng] Re: [PATCH 13/15] trafgen: parser: Add support of 'dinc' function for proto fields

2016-08-03 Thread Tobias Klauser
On 2016-07-26 at 21:35:18 +0200, Vadim Kochan wrote: > Add 'dinc()' function in 'field_expr' rules to be used for dynamically > incrementing of any specified field: > > SYNTAX := dinc() | dinc(inc) | dinc(min, max) | dinc(inc, min, max) This should definitely follow the same

[netsniff-ng] Re: [PATCH 05/15] trafgen: proto: Increment proto field at runtime

2016-08-03 Thread Tobias Klauser
On 2016-07-26 at 21:35:10 +0200, Vadim Kochan wrote: > Extended 'struct packet_dyn' with proto fields which has > dynamically changing values at runtime. > > Implement incrementing of proto field at runtime with min & max > parameters, by default if the 'min' parameter is not

[netsniff-ng] Re: [PATCH v2 1/3] configure: Add option to compile tools without libnl dependency

2016-08-03 Thread Vadim Kochan
Ehh, too fast I need to avoid libnl compilation testing if CONFIG_LIBNL=0, will resend it, sorry ... On Wed, Aug 3, 2016 at 11:58 AM, Vadim Kochan wrote: > Add command line parsing function which allows to compile tools > (trafgen, netsniff-ng) without libnl-xxx

[netsniff-ng] [PATCH v2 0/3] build: Allow compile trafgen & netsniff-ng without libnl

2016-08-03 Thread Vadim Kochan
It might be useful only if to compile trafgen or netsniff-ng in environment (or manually w/o needs for rfraw) where is no needed libnl (embedded/switch server), and it would be good to have ability to disable libnl dependency at all even w/o such features like rfraw dissect/inject & nlmsg

[netsniff-ng] [PATCH v2 3/3] netsniff-ng: Allow compile without libnl

2016-08-03 Thread Vadim Kochan
There is reason to do not install libnl-xxx packages just for sniffing packets, for example if netsniff-ng will be compiled on embedded or switch system. Hide libnl depended code if CONFIG_LIBNL=0. In case if user will use --rfraw option the panic message will be printed, in case if netlink

[netsniff-ng] [PATCH v2 1/3] configure: Add option to compile tools without libnl dependency

2016-08-03 Thread Vadim Kochan
Add command line parsing function which allows to compile tools (trafgen, netsniff-ng) without libnl-xxx libraries. Option --disable-libnl sets CONFIG_LIBNL=0 which means compile tools without libnl dependencies. Signed-off-by: Vadim Kochan --- configure | 47

[netsniff-ng] [PATCH v2 2/3] trafgen: Allow to compile without libnl

2016-08-03 Thread Vadim Kochan
trafgen uses libnl only to inject mac80211 frames but it might be not needed in some embedded or switch environments, so lets make possible to disable this feature. In case if --rfraw option will be used - user will get the panic message. Signed-off-by: Vadim Kochan ---

[netsniff-ng] Re: [PATCH 1/3] trafgen: Allow to compile without libnl

2016-08-03 Thread Daniel Borkmann
On 08/03/2016 09:34 AM, Tobias Klauser wrote: [...] Form the point of view of compiling nesniff-ng/trafgen there is no difference of whether an external library "exists" or was explicitely disabled by the user. I'd really prefer CONFIG_LIBNL for this and I don't think more fine-grained control

[netsniff-ng] Re: [PATCH 1/3] trafgen: Allow to compile without libnl

2016-08-03 Thread Vadim Kochan
OK, thank you! On Wed, Aug 3, 2016 at 10:34 AM, Tobias Klauser wrote: > On 2016-08-02 at 22:17:41 +0200, Vadim Kochan wrote: >> On Tue, Aug 2, 2016 at 11:23 AM, Tobias Klauser wrote: >> > On 2016-07-31 at 23:13:16 +0200, Vadim Kochan

[netsniff-ng] Re: [PATCH 04/15] trafgen: proto: Force field id to be index in array

2016-08-03 Thread Tobias Klauser
On 2016-08-02 at 22:26:28 +0200, Vadim Kochan wrote: > Yes, bug_on(x) is good point, so I am expecting you will continue > review the rest patches ? Yes -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from

[netsniff-ng] Re: [PATCH 1/3] trafgen: Allow to compile without libnl

2016-08-03 Thread Tobias Klauser
On 2016-08-02 at 22:17:41 +0200, Vadim Kochan wrote: > On Tue, Aug 2, 2016 at 11:23 AM, Tobias Klauser wrote: > > On 2016-07-31 at 23:13:16 +0200, Vadim Kochan wrote: > >> trafgen uses libnl only to inject mac80211 frames but > >> it