printf("\n");
printf("---> package %d ---- %s",my_info_struct->count,
ctime((const time_t*)&(pcap_header->ts.tv_sec)));
- printf("pcap header: ");
- printf("capture length=%d ",pcap_header->caplen);
- printf("length(off wire)=%d\n",pcap_header->len);
+ printf("pcap header:\n");
+ printf("capture_length: %d (dec.)",pcap_header->caplen);
+ printf("length(off wire): %d (dec.)\n",pcap_header->len);
/* is ieee802.11 ? -- we assume yes :) */
if((my_info_struct->mmode-0x30==1) &&
(strncmp(my_info_struct->dev,"wlan",4)==0)) {
- printf("debug: ieee802.11\n");
+ printf("ieee802.11 header:\n");
+ w_hdr=(struct ieee802_11_hdr *)package;
+ printf("frame_control: %x duration_id: %x\n",ntohs(w_hdr->frame_ctl),
+ ntohs(w_hdr->duration_id));
+ /* skip ieee802.11 header */
+ package=package+sizeof(struct ieee802_11_hdr);
}
-
/* ieee802.3 */
/* ethernet */
e_hdr=(struct ethhdr *)package;