Lines 162-168
int write_packet( FILE *f_out, struct pcap_pkthdr *pkh, uchar *h80211 )
Link Here
|
162 |
pkh->len -= 24 + qosh_offset + 6; |
162 |
pkh->len -= 24 + qosh_offset + 6; |
163 |
pkh->caplen -= 24 + qosh_offset + 6; |
163 |
pkh->caplen -= 24 + qosh_offset + 6; |
164 |
|
164 |
|
165 |
memcpy( buffer + 12, h80211 + qosh_offset + 30, pkh->caplen ); |
165 |
/* can overlap */ |
|
|
166 |
memmove( buffer + 12, h80211 + qosh_offset + 30, pkh->caplen ); |
166 |
} |
167 |
} |
167 |
else |
168 |
else |
168 |
{ |
169 |
{ |
Lines 874-880
usage:
Link Here
|
874 |
/* WPA data packet was successfully decrypted, * |
875 |
/* WPA data packet was successfully decrypted, * |
875 |
* remove the WPA Ext.IV & MIC, write the data */ |
876 |
* remove the WPA Ext.IV & MIC, write the data */ |
876 |
|
877 |
|
877 |
memcpy( h80211 + z, h80211 + z + 8, pkh.caplen - z ); |
878 |
/* can overlap */ |
|
|
879 |
memmove( h80211 + z, h80211 + z + 8, pkh.caplen - z ); |
878 |
|
880 |
|
879 |
stats.nb_unwpa++; |
881 |
stats.nb_unwpa++; |
880 |
|
882 |
|