]> The Tcpdump Group git mirrors - tcpdump/commit
Prefix all cpack function names with "nd_". [skip ci]
authorDenis Ovsienko <[email protected]>
Wed, 30 Sep 2020 18:15:42 +0000 (19:15 +0100)
committerDenis Ovsienko <[email protected]>
Wed, 30 Sep 2020 18:16:19 +0000 (19:16 +0100)
commit7810dd37c23ea1d304dd90235ba1c145b49c473f
treedcb19e9734f39afe32ed29d8420c4ba76163ca44
parent7c72cdb22c46f935e10ca3a1b015225a2fe828e3
Prefix all cpack function names with "nd_". [skip ci]

Gisle Vanem reported in GH #881 that in Windows tcpdump failed to link
with static AirPcap because the latter seems to include its own variant
of cpack code:

airpcap_static.lib(RadiotapDecode.obj) : error LNK2005: _cpack_init
already defined in cpack.obj
airpcap_static.lib(RadiotapDecode.obj) : error LNK2005: _cpack_uint16
already defined in cpack.obj
airpcap_static.lib(RadiotapDecode.obj) : error LNK2005: _cpack_uint32
already defined in cpack.obj
airpcap_static.lib(RadiotapDecode.obj) : error LNK2005: _cpack_uint64
already defined in cpack.obj
airpcap_static.lib(RadiotapDecode.obj) : error LNK2005: _cpack_uint8
already defined in cpack.obj

He confirms this change resolves the issue.
cpack.c
cpack.h
print-802_11.c