trafgen: Allow to compile without libnl
commitc831bcda3e2638c55b286bd538415ea79f510cdb
authorVadim Kochan <vadim4j@gmail.com>
Thu, 4 Aug 2016 16:30:18 +0000 (4 19:30 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 5 Aug 2016 08:54:52 +0000 (5 10:54 +0200)
treec1ef44e3beb40e51f30487faf81c6127ea6c77b9
parente6b7339a68ce57244117e2470f87ff581520cfc7
trafgen: Allow to compile without libnl

trafgen uses libnl only to inject mac80211 frames but
it might be not needed in some embedded or switch environments.
Let's make it possible to disable this feature.

In case the `--rfraw' option is used, the user will get a panic
message.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
mac80211.c
mac80211.h
trafgen/Makefile