+ /* cache offsets */
+ p_o=((strncmp(my_info_struct->dev,"wlan",4)==0)?sizeof(struct linux_wlan_ng_prism_hdr):0);
+ w_o=((strncmp(my_info_struct->dev,"wlan",4)==0)?sizeof(struct ieee802_11_hdr):0);
+ e_o=sizeof(struct ethhdr);
+ i_o=sizeof(struct iphdr);
+
+ printf("\n");
+ printf("---> package %d ---- %s",my_info_struct->count,
+ ctime((const time_t*)&(pcap_header->ts.tv_sec)));
+ printf("pcap header:\n");
+ printf("capture_length: %d (dec.)\t",pcap_header->caplen);
+ printf("length(off wire): %d (dec.)\n",pcap_header->len);
+
+ /* wireless stuff */
+ /* prism wlan ng headers */
+ if((my_info_struct->mmode-0x30==1) &&
+ (strncmp(my_info_struct->dev,"wlan",4)==0)) {
+ printf("prism header: (%d bytes)\n",p_o);
+ prism_hdr=(struct linux_wlan_ng_prism_hdr *)package;
+ printf("| message code/length: %d/%d |\t",prism_hdr->msgcode,
+ prism_hdr->msglen);
+ printf("device: %s |\n",prism_hdr->devname);
+ /* ieee802.11 header */
+ printf("ieee802.11 header: (%d bytes)\n",w_o);
+ w_hdr=(struct ieee802_11_hdr *)(package+p_o);