diff -ur aircrack-ptw-1.0.0/aircrack-ptw.c aircrack-ptw-1.0.0-pcap0.8/aircrack-ptw.c --- aircrack-ptw-1.0.0/aircrack-ptw.c 2007-04-03 14:50:42.000000000 +0200 +++ aircrack-ptw-1.0.0-pcap0.8/aircrack-ptw.c 2007-04-07 16:11:09.000000000 +0200 @@ -34,6 +34,7 @@ pcap_t * descr; const u_char *packet; struct pcap_pkthdr * hdr; + struct pcap_pkthdr ohdr; int bssoffset; int dstoffset; network * networktable = NULL; @@ -44,6 +45,7 @@ uint8_t iv[3]; uint8_t keystream[16]; int k,i; + hdr=&ohdr; printf("This is aircrack-ptw 1.0.0\nFor more informations see http://www.cdc.informatik.tu-darmstadt.de/aircrack-ptw/\n"); @@ -61,7 +63,7 @@ printf("sorry, unsupported data link layer\n"); return -1; } - while(pcap_next_ex(descr, &hdr, &packet) != -2) { + while((packet=pcap_next(descr, hdr)) != NULL) { if (((hdr->len == 68) || (hdr->len == 86) ) && (packet[0] == 0x08)) { // ARP // Find the right state