diff --git a/infrastructure-centred/owlps-listener/owlps-listenerd.c b/infrastructure-centred/owlps-listener/owlps-listenerd.c index 3830403..d294edb 100644 --- a/infrastructure-centred/owlps-listener/owlps-listenerd.c +++ b/infrastructure-centred/owlps-listener/owlps-listenerd.c @@ -325,11 +325,8 @@ void read_packet(u_char *args, const struct pcap_pkthdr *header, const u_char *p /* Traitements communs */ - // TODO : traiter le boutisme avec ntohs memcpy(&rtap_bytes, &data[2], sizeof(unsigned short)) ; // Recopie les deux octets à partir du troisième octet de donnée qui est la taille de l'en-tête rtap (change avec des flags) -#ifdef PLATFORM_ATHEROS - rtap_bytes = ((rtap_bytes & 0xff00) >> 8) + ((rtap_bytes & 0xff) << 8) ; -#endif // PLATFORM_ATHEROS + rtap_bytes = ntohs(rtap_bytes) ; raw_packet_type = data[rtap_bytes] ; // Au bout de l'en-tête rtap il y a celle du 802.11 dont le premier determine le type (beacon ou pas)