+ /* local variables */
+ struct linux_wlan_ng_prism_hdr *prism_hdr;
+ struct ieee802_11_hdr *w_hdr;
+ struct ethhdr *e_hdr;
+ struct iphdr *ip_hdr;
+ struct info_struct *my_info_struct;
+ int i,p_o,w_o,e_o,i_o;
+
+ my_info_struct=(struct info_struct *)info;
+ ++(my_info_struct->count);
+
+ /* 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\n",ntohs(prism_hdr->msgcode),
+ ntohs(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);