1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/examples/pcap2nbench
Joe Guo 5ca89d84a7 Fix typo for response
reponse --> response

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2018-05-12 02:09:25 +02:00
..
closerequest.cpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
closerequest.hpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
COPYING
ethernet.cpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
ethernet.hpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
ip.cpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
ip.hpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
main.cpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Makefile r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
ntcreateandxrequest.cpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
ntcreateandxrequest.hpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
ntcreateandxresponse.cpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
ntcreateandxresponse.hpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
readandxrequest.cpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
readandxrequest.hpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
readandxresponse.hpp Fix typo for response 2018-05-12 02:09:25 +02:00
README
smb.cpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
smb.hpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
tcp.cpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
tcp.hpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
writeandxrequest.cpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
writeandxrequest.hpp r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00

pcap2nbench
-----------

About

This program converts a libpcap network trace file (produced by ethereal or
another pcap-aware network analyzer) into a output suitable for nbench.  The
only option it takes it -i which supresses any reads/writes/closes that use a
FID that does not have a corresponding ntcreateandx

Limitations

1) pcap2nbench does not handle ip fragmentation.  You should not normally see
   very much fragmentation so this should not really affect a workload.
2) unicode on the wire is not supported.
3) only a limited number of SMBs are supported.  Namely: NtCreateAndX,
   ReadAndX, WriteAndX, and Close.  In addition, not all WCTs are supported on
   each of these SMBs.

Future Work

It would be nice to use Samba or Ethereal's parsing code to handle the SMBs.
At first glance, this seemed non-trivial.  It would also be nice to handle some
Trans2 SMBs specifically QueryFileInfo and QueryPathInfo.