search for: print_smb

Displaying 1 result from an estimated 1 matches for "print_smb".

Did you mean: print_job
1998 Apr 21
0
Patching tcpdump-smb to deal with hyperlong packet reports
...ta,"NBT Session Packet\nFlags=[rw]\nLength=[rd]\n",data+4); + if (memcmp(data,"\377SMB",4)==0) { + if (nbt_len>PTR_DIFF(maxbuf,data)) + printf("WARNING: Short packet. Try increasing the snap length (%d)\n", + PTR_DIFF(maxbuf,data)); + print_smb(data,maxbuf>data+nbt_len?data+nbt_len:maxbuf); + } else { + printf("Session packet:(raw data?)\n"); + } + break; + to replace print_smb(data,maxbuf>data+nbt_len?data+nbt_len:maxbuf); with print_smb(data,data+nbt_len); The complete set of patches to app...