diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-08-04 19:30:19 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-08-05 10:55:10 +0200 |
commit | 20a5e15443bfbbb7e6624a754832cdce19d462a0 (patch) | |
tree | e1bfc3dd5ae574279a53f2bc669a3ca863957117 /dissector_netlink.c | |
parent | c831bcda3e2638c55b286bd538415ea79f510cdb (diff) |
netsniff-ng: Allow to compile without libnl
One might not want to install libnl just for sniffing packets, for
example if netsniff-ng will be compiled on embedded or switch system.
Hide libnl dependend code if CONFIG_LIBNL=0.
In case the `--rfraw' option is used, the user will get a panic
message. In case of netlink messages being sniffed, they will not be
dissected.
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'dissector_netlink.c')
-rw-r--r-- | dissector_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dissector_netlink.c b/dissector_netlink.c index 2b23a99..1884d74 100644 --- a/dissector_netlink.c +++ b/dissector_netlink.c @@ -9,7 +9,7 @@ static inline void dissector_init_entry(int type) { - dissector_set_print_type(&nlmsg_ops, type); + dissector_set_print_type(dissector_get_netlink_entry_point(), type); } static inline void dissector_init_exit(int type) |