#include #include #include #include #define ps 160 #define macc 10 // How many MAC addresses we will remember u_char mac[macc][6]; // Array of seen MAC addresses int mcc = 0; // How many we have seen u_char * frmpp = (u_char*) "frmp"; int min(int a, int b){return a%d ", maccv(data), maccv(data+6)); printf("mch11=%d, when: %d sec + %d μsec\n", ph->len, (int)ph->ts.tv_sec, (int)ph->ts.tv_usec); if(0){int j=min(ps,ph->caplen); while(j--) { printf("%02x", *(data+j)); if(!((j+2)&3)) putchar(' ');} printf("\n");} else {int j, l=min(ps,ph->caplen); for(j=14; j