wireshark/caputils
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 Add EditorConfig settings for most C files 2016-03-08 10:46:35 +00:00
CMakeLists.txt spdx: more licenses converted. 2018-03-07 15:56:44 +00:00
airpcap.h caputils: use SPDX identifiers. 2018-02-07 06:29:48 +00:00
airpcap_loader.c Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
airpcap_loader.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
capture-pcap-util-int.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
capture-pcap-util-unix.c Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
capture-pcap-util.c Eliminate some unneeded header checks. 2018-05-16 22:03:09 +00:00
capture-pcap-util.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
capture-wpcap.c Windows: prioritize Npcap over WinPcap 2018-05-08 17:29:34 +00:00
capture-wpcap.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
capture_ifinfo.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
capture_win_ifnames.c Use common indenting space in heading 2018-05-01 06:55:55 +00:00
capture_win_ifnames.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
capture_wpcap_packet.c Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
capture_wpcap_packet.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
iface_monitor.c Older versions of Clang don't understand -Wpedantic. 2018-05-18 22:31:05 +00:00
iface_monitor.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
ws80211_utils.c make our version of nla_for_each_nested() public 2018-05-23 13:18:00 +00:00
ws80211_utils.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00