t_beacon_fb *beacon_fb;
int ret;
char string[MESSAGE_MAX];
+ char sc[MAX_SYSCALL_CHARS];
+ unsigned char new;
info=(t_info *)ptr;
info->count++;
memset(&new_sta,0,sizeof(t_sta));
+ new=0;
if(info->dump_fd!=0) {
ret=write(info->dump_fd,pcap_header,sizeof(struct pcap_pkthdr));
if((ret==L_EMPTY_LIST)|(ret==L_NO_SUCH_ELEMENT)) {
list_add_element(&(info->sniffed_sta),&new_sta,sizeof(t_sta));
sta=(t_sta *)info->sniffed_sta.current->data;
+ new=1;
}
else sta=(t_sta *)info->sniffed_sta.current->data;
// fill in stuff ...
(i==ADDR_LEN-1)?'.':':');
string[22+3*ADDR_LEN+1]=0;
display_console(info,string);
+ if(new) {
+ snprintf(sc,MAX_SYSCALL_CHARS,"flite 'new ssid: %s'",sta->ssid);
+ system(sc);
+ }
}
}