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

2016-08-04 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 messa

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

2016-08-04 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 dissecti

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

2016-08-04 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 --- mac80211.c | 1 -

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

2016-08-04 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 --- .travis.yml | 1 + configure | 25 +

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

2016-08-04 Thread Vadim Kochan
On Thu, Aug 4, 2016 at 12:19 PM, Tobias Klauser wrote: > On 2016-08-03 at 10:58:00 +0200, Vadim Kochan wrote: >> 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

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

2016-08-04 Thread Tobias Klauser
On 2016-08-03 at 10:58:00 +0200, Vadim Kochan wrote: > 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 eve

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

2016-08-04 Thread Tobias Klauser
On 2016-08-03 at 10:58:01 +0200, Vadim Kochan wrote: > 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: V