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

This commit is contained in:
Xianjun Jiao 2021-05-03 09:58:01 +02:00
parent e1a9c183bc
commit 46886bdf9e

View File

@ -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;