wireshark/extcap
Martin Kaiser 675e0649c0 make our version of nla_for_each_nested() public
caputils/ws80211_utils.c contains a re-definition of the linux kernel's
nla_for_each_nested() macro that applies the correct casts to allow
compilation with a C++ compiler.

Make this definition public by moving it into a new wsutil/netlink.h
file. Include the kernel's original definition before we overwrite it. This
way, it's not necessary for a .c file to include wsutil/netlink.h after
the system includes.

Use our nla_for_each_nested() version in extcap/dpauxmon.c to squelch the
following compiler warning:

[1664/2251] Building C object
extcap/CMakeFiles/dpauxmon.dir/dpauxmon.c.o
../extcap/dpauxmon.c: In function ‘family_handler’:
../extcap/dpauxmon.c:168:13: warning: request for implicit conversion
        from ‘void *’ to ‘struct nlattr *’ not permitted in C++ [-Wc++-compat]
  nla_for_each_nested(mcgrp, tb[CTRL_ATTR_MCAST_GROUPS], rem_mcgrp) {

Change-Id: I6ba40ef6343c5d168c1b0c4554f13202911ded76
Reviewed-on: https://code.wireshark.org/review/27688
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-05-23 13:18:00 +00:00
..
.editorconfig Move extcap EditorConfig settings to source dir 2016-03-23 00:24:52 +00:00
CMakeLists.txt cmake: move extcap sections to extcap/CMakeLists.txt. 2018-05-19 06:20:47 +00:00
androiddump.c You have to set tm_isdst before calling mktime(). 2018-05-09 03:49:07 +00:00
ciscodump.c sshdump/ciscodump: use groups in config. 2018-05-08 14:06:22 +00:00
dpauxmon.c make our version of nla_for_each_nested() public 2018-05-23 13:18:00 +00:00
dpauxmon_user.h extcap: Support for DisplayPort AUX channel monitors 2018-05-14 10:44:37 +00:00
extcap-base.c sshdump/ciscodump: use groups in config. 2018-05-08 14:06:22 +00:00
extcap-base.h extcap: Tell utilities the wireshark version 2018-04-05 08:40:04 +00:00
randpktdump.c randpktdump: use boolflag instead of boolean in config. 2018-05-18 05:48:58 +00:00
ssh-base.c replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later. 2018-02-08 14:57:36 +00:00
ssh-base.h replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later. 2018-02-08 14:57:36 +00:00
sshdump.c sshdump/ciscodump: use groups in config. 2018-05-08 14:06:22 +00:00
udpdump.c replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later. 2018-02-08 14:57:36 +00:00