summaryrefslogtreecommitdiff
path: root/mac80211.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2015-04-21 12:23:13 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2015-04-21 12:23:13 +0200
commit42ca7e42aa76ee52499ae82370d11d044e811f35 (patch)
treeadffcdc849116db639441194a37cb0c001003904 /mac80211.c
parent264ef01ddd743c8832fcc142b460fc13dc749138 (diff)
netsniff-ng: fix snooping on any device when no option is given
Commit f43bbe9e895a ("mac80211: Check existence of generated monX device") broke starting netsniff-ng w/o any arguments, that is, sniffing on "any" device. The test in device_ifindex() should be index < 0. Fixes: f43bbe9e895a ("mac80211: Check existence of generated monX device") Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'mac80211.c')
0 files changed, 0 insertions, 0 deletions
nts, or is varargs, A will have written the arguments for C in A's stack frame. To solve this, we introduce a "livepatch stack" which grows upward from the base of the regular stack, and is used to store the TOC & LR when calling a live patched function. When the patched function returns, we retrieve the real LR & TOC from the livepatch stack, restore them, and pop the livepatch "stack frame". Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Reviewed-by: Torsten Duwe <duwe@suse.de> Reviewed-by: Balbir Singh <bsingharora@gmail.com>
Diffstat (limited to 'Documentation')