From 46886bdf9e77307cd198e09501cdc798fa18130c Mon Sep 17 00:00:00 2001 From: Xianjun Jiao Date: Mon, 3 May 2021 09:58:01 +0200 Subject: [PATCH] To avoid compiling error of inject_80211.c with new kernel (2019_R2), the rand_char size needs to be 1484 due to the space occupied by u8aRadiotapHeader and ieee_hdr in buffer --- user_space/inject_80211/inject_80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_space/inject_80211/inject_80211.c b/user_space/inject_80211/inject_80211.c index 461079e..c37f3b0 100644 --- a/user_space/inject_80211/inject_80211.c +++ b/user_space/inject_80211/inject_80211.c @@ -119,7 +119,7 @@ void usage(void) int main(int argc, char *argv[]) { u8 buffer[1536]; - char szErrbuf[PCAP_ERRBUF_SIZE], rand_char[1536], hw_mode = 'n'; + char szErrbuf[PCAP_ERRBUF_SIZE], rand_char[1484], hw_mode = 'n'; int i, nLinkEncap = 0, r, rate_index = 0, sgi_flag = 0, num_packets = 10, payload_size = 64, packet_size, nDelay = 100000; pcap_t *ppcap = NULL;