summaryrefslogtreecommitdiff
path: root/proto_icmpv4.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-08-14 15:20:51 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-08-14 15:20:51 +0200
commit9b166a9f769392dd0326a1c41864312bd22df07b (patch)
tree8b2a6c66f117600eb764f9c5aa77e522b35f4133 /proto_icmpv4.c
parent5bc19d0b84d0d1c448cd4e4ba0e3e7da3503434a (diff)
netsniff-ng: Clean up HAVE_TPACKET3 #ifdefs
Instead of having #ifdef HAVE_TPACKET3 spread all over the code, encapsulate the functionality depending on it inside inline functions: the existing is_tpacket_v3() introduced in commit 5bc19d0b84d0 ("netsniff-ng: Only use TPACKET_V3 if HAVE_TPACKET3 is defined") and the newly introduced get_ring_layout_size() to get the ring layout size depending on the tpacket version available and the version actually in use. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proto_icmpv4.c')
0 files changed, 0 insertions, 0 deletions
='/cgit.cgi/linux/net-next.git/commit/net/sched?id=69ca05ce9dec2cc95070df7f1f10ea6c9c12d237'>sched: cls_flower: expose priority to offloading netdeviceJiri Pirko1-0/+3 2017-02-03net/sched: act_ife: Change to use ife moduleYotam Gigi2-78/+33 2017-02-03net/sched: act_ife: Unexport ife_tlv_meta_encodeYotam Gigi1-2/+2 2017-02-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller2-85/+48 2017-02-02skbuff: add and use skb_nfct helperFlorian Westphal1-1/+1