summaryrefslogtreecommitdiff
path: root/pkt_buff.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-04-10 11:43:57 +0300
committerTobias Klauser <tklauser@distanz.ch>2015-04-13 10:32:25 +0200
commit47a7037955bfa7405a0a676f214c26d136b8ca9a (patch)
tree7d442b8d8131e6d3dfcfc47a462a732278331a2c /pkt_buff.h
parent06200b94b91cdf80d23a15de00145147ffd1174e (diff)
netsniff-ng: Consider radiotap header of monitor dev
netsniff-ng does not check if monitor device includes radiotap header which leads to the wrong 802.11 frame parsing. Tested if the .pcap file is understandable by wireshark and if dump info is basically correct, but did not test the case when xmit packets from .pcap file to the output device and from the input device to the output device. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> [tklauser: whitespace changes] Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'pkt_buff.h')
-rw-r--r--pkt_buff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkt_buff.h b/pkt_buff.h
index 3376107..1350388 100644
--- a/pkt_buff.h
+++ b/pkt_buff.h
@@ -20,6 +20,7 @@ struct pkt_buff {
unsigned int size;
struct protocol *proto;
+ int link_type;
};
static inline struct pkt_buff *pkt_alloc(uint8_t *packet, unsigned int len)