From 6c396ea5772c26edf8a6b1b5bc295e3675e10e06 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 15 Aug 2003 00:04:20 +0000 Subject: Add utility that takes a samba log file (at least level 5 for headers and 10 for data contents as well) and creates a packet trace readable by ethereal. What does not work yet: - SMB data contents (log level 5) - SMB data contents beyond the 512 byte range (log level 99 or something?) (This used to be commit 95b1d4933b0de63613fe041c273d413d86909b4b) --- source3/utils/log2pcaphex.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'source3/utils/log2pcaphex.c') diff --git a/source3/utils/log2pcaphex.c b/source3/utils/log2pcaphex.c index 790c699c55..ba5082da1e 100644 --- a/source3/utils/log2pcaphex.c +++ b/source3/utils/log2pcaphex.c @@ -1,25 +1,25 @@ /* -Unix SMB/CIFS implementation. -Utility to extract pcap files from samba (log level 10) log files + Unix SMB/CIFS implementation. + Utility to extract pcap files from samba (log level 10) log files -Copyright (C) Jelmer Vernooij 2003 -Thanks to Tim Potter for the genial idea + Copyright (C) Jelmer Vernooij 2003 + Thanks to Tim Potter for the genial idea -Example use: log2pcaphex < samba-log-file | text2pcap -T 139,139 - foo.pcap + Example use: log2pcaphex < samba-log-file | text2pcap -T 139,139 - foo.pcap -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "includes.h" -- cgit