summaryrefslogtreecommitdiff
path: root/pcap_rw.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-06-29 11:27:28 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-06-29 11:33:40 +0200
commitc7d92d93ff8d942db93680655275ec1c60754b98 (patch)
tree4e8c2fc880573668ec8ba1a773082948ef3cbb81 /pcap_rw.c
parent382bc0047d33ada5f4b33cab077aa369eb9cb7f7 (diff)
netsniff-ng: nlmsg: Define NTF_* constants if not provided by kernel headers
NTF_SELF and NTF_MASTER might not be defined on older kernel versions (as is e.g. the case in the Travis CI build failing [1]). Fix this by conditionally defining all NTF_* constants. [1] https://travis-ci.org/netsniff-ng/netsniff-ng/jobs/68779130 Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'pcap_rw.c')
0 files changed, 0 insertions, 0 deletions
hat the firwmare knows where is the data. When paging is used, the variable paging_mem_size is the number of bytes that are available through paging. This variable is not zeror-ed if the driver fails to configure the paging in the firmware, but the memory is freed which is inconsistent. This inconsistency led to a NULL pointer dereference in the code that collects the debug data. Fix this by zero-ing the paging_mem_size variable and NULLify the relevant pointers, so that the code that collects the debug data will know that the paging data is not available. Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'Documentation/.gitignore')