else {
printf("- crypted packet!\n");
/* print crypted snap - write into file */
- printf("snap: (aa aa 03 00 00 00) ");
- for(i=0;i<4;i++) {
- printf("%x ",*(snap_hdr->snap-4+i));
- crypted_snap[i]=*(snap_hdr->snap-4+i);
+ printf("snap: (iv + crypted aa aa 03 00 00 00) ");
+ for(i=0;i<10;i++) {
+ printf("%x ",*(snap_hdr->snap+i));
+ crypted_snap[i]=*(snap_hdr->snap+i);
// if(file_fd>0)
// write(file_fd,snap_hdr->snap+i-4,1);
}
- printf("| ");
- for(i=0;i<6;i++) {
- printf("%x ",snap_hdr->snap[i]);
- crypted_snap[4+i]=snap_hdr->snap[i];
- // if(file_fd>0)
- // write(file_fd,snap_hdr->snap+i,1);
- }
printf("\n");
crypted_snap[10]='\n';
if(file_fd>0) {