The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / editcap.c @ master

History | View | Annotate | Download (66.5 KB)

# Date Author Comment
97546165 08/24/2014 04:04 AM Graham Bloice

Modify includes of config.h so that out-of-tree builds, i.e. CMake
don't pick up the in-tree copy.

Change-Id: I7ec473876cdba1a025c52362d7f6adc62d24ce71
Reviewed-on: https://code.wireshark.org/review/3798
Petri-Dish: Graham Bloice <>...

f3dd7fe1 08/05/2014 04:42 PM Bill Meier

Fix whitespace/indentation to match editor modelines.

Change-Id: I3445ae22f10584582d465bf632942e016f5f70ca
Reviewed-on: https://code.wireshark.org/review/3452
Reviewed-by: Bill Meier <>

5bfc21cf 07/06/2014 05:03 PM Guy Harris

Clean up handling of missing functions.

With autotools, CMake, and nmake, if we have a function, #define
HAVE_{function_name_in_all_caps}, otherwise don't #define it.

If we provide our own version of a function in libwsutil, make sure we
have a header that declares it, and ONLY include that header if...

b4ce3525 07/03/2014 04:46 AM Guy Harris

Make --help and --version information a bit more uniform.

Have --version print the version number, the copyright information, the
"compiled with" information, the "running on/with" information, and the
compiler information.

Have --help print the version number, a one-line summary of what the...

8afe3313 07/03/2014 12:51 AM Guy Harris

More getopt_long, to add --help and --version support.

Change-Id: I946067b972a70154f02ab561bc0fd029a7a5abc4
Reviewed-on: https://code.wireshark.org/review/2791
Reviewed-by: Guy Harris <>

3773a756 06/20/2014 09:05 PM Jeff Morriss

Add command-line argument to request the version to a number of the utilities.

In some cases "-v" was already used so "-V" is the option.
Note that the version information in these utilities is much shorter than what
is presented by the big programs.

As requested by https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5804...

6db77b00 05/24/2014 02:31 PM Guy Harris

Allow wtap_read() and wtap_seek_read() to return records other than packets.

Add a "record type" field to "struct wtap_pkthdr"; currently, it can be
REC_TYPE_PACKET, for a record containing a packet, or
REC_TYPE_FILE_TYPE_SPECIFIC, for records containing file-type-specific...

f635efb6 05/23/2014 05:04 PM Guy Harris

More checks for the presence of a time stamp.

And make sure we have a pointer to the struct wtap_pkthdr for the packet
before we check it for a time stamp.

Change-Id: I26b205e5467a3a1236e9fd1f7633e86ece5e9040
Reviewed-on: https://code.wireshark.org/review/1762...

8a7e1f48 05/23/2014 02:53 PM Guy Harris

Don't assume all packets have time stamps.

Pcap-ng files might have Simple Packet Blocks, which don't have time
stamps, and some other file formats might not have time stamps as well.

Only check the time stamp if we have one, and don't use "the start time...

a344c973 05/23/2014 06:50 AM Guy Harris

Revert "Allow wtap_read() and wtap_seek_read() to return non-packet records."

This reverts commit c0c480d08c175eed4524ea9e73ec86298f468cf4.

A better way to do this is to have the record type be part of struct wtap_pkthdr; that keeps the metadata for the record together and requires fewer API changes. That is in-progress....

c0c480d0 05/22/2014 11:02 PM Guy Harris

Allow wtap_read() and wtap_seek_read() to return non-packet records.

This is the first step towards implementing the mechanisms requestd in
bug 8590; currently, we don't return any records other than packet
records from libwiretap, and just ignore non-packet records in the rest...

a1b1c8be 05/09/2014 01:21 AM Guy Harris

Revert "Refactor Wiretap"

This reverts commit 1abeb277f5e6bd27fbaebfecc8184e37ba9d008a.

This isn't building, and looks as if it requires significant work to fix.

Change-Id: I622b1bb243e353e874883a302ab419532b7601f2
Reviewed-on: https://code.wireshark.org/review/1568...

1abeb277 05/08/2014 11:04 PM Michael Mann

Refactor Wiretap

Start of refactoring Wiretap and breaking structures down into "generally useful fields for dissection" and "capture specific". Since this in intended as a "base" for Wiretap and Filetap, the "wft" prefix is used for "common" functionality....

29659139 03/04/2014 09:27 AM Alexis La Goutte

Remove all $Id$ from top of file

(Using sed : sed -i '/^ \* \$Id\$/,+1 d')

Fix manually some typo (in export_object_dicom.c and crc16-plain.c)

Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8
Reviewed-on: https://code.wireshark.org/review/497
Reviewed-by: Anders Broman <>

579e7e19 02/25/2014 12:43 PM Michal Labedzki

Wireshark: Add option to choose format type of capture file

The best heuristic can fail, so add possibility to manually choose
capture file format type, so not correctly recognize file format can be
loaded in Wireshark.

On the other side now it is possible to open capture file...

f9669809 02/07/2014 06:03 PM Gerald Combs

Replace "svn" with "git" all over the place.

Rename "SVNPATH" to "GITBRANCH" since that seems more appropriate.
Rename "svnversion.h" to "version.h" as Evan suggested. Update some
URLs. In make-version.pl, make sure we don't set an improper upstream
branch name. Use the number of commits + short hash from `git describe`...

c6022b3b 01/26/2014 07:56 AM Alexis La Goutte

Drop support of Visual Studio 2005

  • Remove _MSC_VER < 1500 check
  • Cleanup config.nmake

See http://www.wireshark.org/lists/wireshark-dev/201305/msg00159.html

svn path=/trunk/; revision=54965

86930ddd 01/23/2014 10:11 AM Bill Meier

Given that we allow the 'outfile file' to be stdout, then presumably all
text messages (including informational) should go to stderr.

svn path=/trunk/; revision=54930

9be9ba5b 01/23/2014 09:39 AM Bill Meier

printf(...) --> fprintf(stderr,...) (in a commented out line of code)

svn path=/trunk/; revision=54929

90d7c5f5 01/21/2014 07:26 PM Guy Harris

Don't write out packets that have a "captured length" bigger than we're
willing to read or that's bigger than will fit in the file format;
instead, report an error.

For the "I can't write a packet of that type in that file type" error,
report the file type in question....

c852f994 01/17/2014 03:06 PM Martin Kaiser

From Toralf Förster
fix format strings for signed integers

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9637

svn path=/trunk/; revision=54835

58a92b1f 01/03/2014 09:30 AM Bill Meier

For '-h' option: exit(0) as per convention;
No need to build a constant string on the stack at runtime;
Fix a typo;
Do some whitespace changes;
Change tab-width & etc to 8 in editor modelines.

svn path=/trunk/; revision=54581

8ab9c556 12/23/2013 10:53 AM Bill Meier

From Ville Skyttä: Spelling Fixes

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9591

svn path=/trunk/; revision=54387

0cc1545d 12/02/2013 03:30 AM Guy Harris

Move most of the plugin code from epan to wsutil and remove all
knowledge of particular types of plugins. Instead, let particular types
of plugins register with the common plugin code, giving a name and a
routine to recognize that type of plugin.

In particular applications, only process the relevant plugin types....

db25270d 11/16/2013 09:55 PM Guy Harris

Move the epan/filesystem.c routines to wsutil; they're not specific to
packet dissection, they're specific to the entire Wireshark suite of
programs.

svn path=/trunk/; revision=53377

bde2a949 11/15/2013 05:31 PM Chris Maynard

Fix chopping when offset is 0. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9422

svn path=/trunk/; revision=53345

38edae1c 11/09/2013 05:38 AM Jakub Zawadzki

Replace wtap_nstime with nstime_t, remove wtap_nstime_to_sec.

After r50154 nstime_t is inside wsutil/ so wiretap don't need it's own copy.

svn path=/trunk/; revision=53184

853da2eb 11/08/2013 04:53 AM Guy Harris

The "file types" we have are actually combinations of types and
subtypes, e.g. Network Monitor version 1 and Network Monitor version 2
are separate "file types", even though they both come from Network
Monitor.

Rename various functions, #defines, and variables appropriately....

a876a430 10/29/2013 04:34 AM Martin Kaiser

From Peter Wu

write editcap debug infos to stderr
print some of those messages only in verbose mode

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9342

svn path=/trunk/; revision=52942

58e4750e 09/16/2013 03:56 AM Alexis La Goutte

Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=52097

cc39b089 09/09/2013 03:46 PM Chris Maynard

Remove a leftover #if 0 block.

svn path=/trunk/; revision=51888

51ccb612 09/09/2013 03:39 PM Chris Maynard

Fix the "crossed chopping region" problem. Also, move chopping to its own function for both clarity and correctness since we need to compute chop offsets and lengths on a per-packet basis whereas previously this was not being done.

Lastly, try to improve the documentation a bit concerning chopping and provide another example depicting 2 separate chopping regions. Maybe this is clearer?...

4b4aaf35 09/09/2013 02:26 AM Chris Maynard

The file was a weird mix of 2 and 4 indent so use a consistent 4-space indent scheme and add modelines to match. Also, declare a few variables static.

(A fix for crossed chopping regions should be coming in the near future ...)

svn path=/trunk/; revision=51863

eeba2113 09/08/2013 09:04 PM Chris Maynard

OK, allow either positive or negative offsets no matter if we're chopping from the beginning or the end.

Given the following example, it's now possible to chop the 10 bytes depicted from the 100 byte packet 4 different ways and achieve the exact same results:...

ba3a77bb 09/08/2013 05:35 PM Chris Maynard

Specify the optional offset as a positive value, regardless of chopping from packet beginning or packet end. I think this will be easier syntax to remember.

svn path=/trunk/; revision=51848

54adc0d2 09/08/2013 04:29 PM Chris Maynard

Allow an optional offset to be specified when chopping bytes from packets.

svn path=/trunk/; revision=51845

2df54da6 08/01/2013 07:34 PM Jeff Morriss

Move a bunch of the crypt modules and pint.h into wsutil.

This means wsutil now links against libcrypt.

Protect a bunch of the crypt header files from multiple inclusion.

svn path=/trunk/; revision=51100

2d30d5be 07/15/2013 09:16 PM Jeff Morriss

Move strnatcmp.{h,c} from epan into wsutil: there's nothing epan-specific
there and moving it avoids having to recompile the file for use in editcap
and mergecap (which don't link against libwireshark).

svn path=/trunk/; revision=50650

54bb2e7a 07/14/2013 10:48 PM Jeff Morriss

Move report_err.{h,c} from epan into wsutil: there's nothing epan-specific there and moving it avoids having to recompile the file for use in editcap and capinfos (which don't link against libwireshark).

svn path=/trunk/; revision=50598

cab1f9fc 07/12/2013 01:14 PM Chris Maynard

Allow -C <choplen> to be used more than once so it is now possible to chop bytes from both the beginning and end of a packet in a single step.

svn path=/trunk/; revision=50536

e7a7293b 07/10/2013 04:02 PM Chris Maynard

Add -L option to allow adjustment of original frame length. This change was motivated by a question on ask where the user currently has to jump through hoops to accomplish the same thing which can now be done in 1 step via:

editcap -T wpan -C 16 -L -F libpcap test.pcap test_wpan.pcap...
d602662b 07/10/2013 12:18 PM Chris Maynard

Add strnatcmp by Martin Pool for 'natural order' string comparisons, and make use of it in editcap and mergecap for listing encapsulation types. For example:
Before:
user0 - USER 0
user1 - USER 1
user10 - USER 10
user11 - USER 11
user12 - USER 12...

a441793c 06/25/2013 06:02 PM Jeff Morriss

Move a couple of time-related modules into wsutil.

A bunch of files didn't really need to include these header files so remove
the include line rather than changing it.

svn path=/trunk/; revision=50154

0df5a939 03/19/2013 09:18 PM Bill Meier

From beroset:
remove C++ incompatibilities
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10397

svn path=/trunk/; revision=48438

29ceca1b 03/07/2013 12:20 PM Gerald Combs

From Balint:

[PATCH 1/2] Revert "Try to fix the "LNK4217: locally defined symbol"
warnings.

This reverts commit r48158.

[PATCH 2/2] Employ small hack in editcap to link with a few objects from
libwireshark properly

From me:

Add the ability to reset symbol exports via ws_symbol_export.h's include...

b204e38a 03/05/2013 05:15 PM Anders Broman

Use explicit casts.

svn path=/trunk/; revision=48108

bd4cffae 02/19/2013 08:19 PM Gerald Combs

When any of our executables start on Windows create or open a "Wireshark
is running" mutex. Have the NSIS installer check for this mutex and ask
the user to close Wireshark if it's found. While not perfect this makes
the WinSparkle update process much less annoying....

664d138e 01/14/2013 10:47 AM Jeff Morriss

Previous commit put a little too much of the README.developer boilerplate in...

svn path=/trunk/; revision=47065

e64d2f9b 01/14/2013 10:25 AM Jeff Morriss

In response to http://ask.wireshark.org/questions/17660/licence-of-editcap
and as per email response from Richard Sharpe, add GPLv2+ boilerplate header
and license.

svn path=/trunk/; revision=47063

deb4f08c 01/04/2013 09:56 AM Pascal Quantin

Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8105 :
Allow use of huges values for localtime / ctime / gmtime with MSVC 2008 or later

svn path=/trunk/; revision=46930

8ed7a73e 12/26/2012 12:57 AM Guy Harris

Fix a bunch of warnings.

Cast away some implicit 64-bit-to-32-bit conversion errors due to use of
sizeof.

Cast away some implicit 64-bit-to-32-bit conversion errors due to use of
strtol() and strtoul().

Change some data types to avoid those implicit conversion warnings....

78631020 10/16/2012 05:50 PM Jakub Zawadzki

Add wtap_pseudo_header union to wtap_pkthdr structure.
Use pkthdr instead of pseudo_header as argument for dissecting.

svn path=/trunk/; revision=45601

f682f195 10/15/2012 04:40 AM Anders Broman

From Jim Young:
Have editcap use modulo when calculating filenum component of fileset name .

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7863

svn path=/trunk/; revision=45556

eb618aba 10/09/2012 04:40 AM Anders Broman

From Bill Parker:
Explicitly declare/cast 'unsigned <variable>' as 'unsigned int <variable>'

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7810

svn path=/trunk/; revision=45418

3551a86c 09/19/2012 09:29 PM Jeff Morriss

We always HAVE_CONFIG_H so don't bother checking whether we have it or not.

svn path=/trunk/; revision=45015

9c0dd8c7 09/09/2012 10:23 AM Evan Huus

Make count variable in editcap unsigned, fixes more format string
mismatches.

svn path=/trunk/; revision=44820

30199499 07/15/2012 10:37 PM Martin Mathieson

Fix a copy+paste error ('capinfos' appearing in error string).

svn path=/trunk/; revision=43738

665b95d1 06/15/2012 08:27 AM Anders Broman

Try to fix pcap-ng - most files created by editcap -c have no IDB
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7350

By using wtap_dump_open_ng() in all places.

svn path=/trunk/; revision=43271

603b4d43 03/13/2012 09:08 PM Jeff Morriss

Don't free idb_inf in wtap_dump_open_ng(): free it in the callers. This fixes the double-free editcap crashes that the buildbot's been seeing lately.

svn path=/trunk/; revision=41542

7605b014 03/13/2012 10:11 AM Anders Broman

From Jose Pedro Oliveira:
the shb_userappl value wasn't being changed.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6937

svn path=/trunk/; revision=41530

ead0764c 03/13/2012 05:13 AM Anders Broman

A modified version of "pcapng: shd_userappl in newly created files"
to only add the name if no name if there yet. Original patch from
Jose Pedro Oliveira.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6937

svn path=/trunk/; revision=41524

3394b453 03/12/2012 10:18 AM Anders Broman

Free idb_inf and shb_hdr when done.

svn path=/trunk/; revision=41501

25ae6ac3 03/02/2012 07:14 PM Guy Harris

Use wtap_dump_open_ng(), so we preserve all the interfaces in pcap-NG
files.

svn path=/trunk/; revision=41328

174d06e4 02/24/2012 12:17 AM Bill Meier

Revert SVN #40866 (which used g_fprintf() in place of fprintf()).

Using g_fprintf() fails (crashes) on Windows because the Windows GLib DLL
is linked with (depends upon) MSVCRT while editcap is linked with
(depends upon) MSVCR90.

IOW: "You can't do that ... (on Windows)"...

23928d99 02/05/2012 08:25 AM Anders Broman

From Alexander Koeppe:
Eliminate Mixture of libc and glibc in editcap.c

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6695

svn path=/trunk/; revision=40866

e553c70f 01/23/2012 02:48 AM Anders Broman

From Michael Mann:
help page update (pcapng is now the default file format).

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6551

svn path=/trunk/; revision=40658

20979125 01/15/2012 07:29 AM Jörg Mayer

Rename crypt-xxx to xxx

svn path=/trunk/; revision=40511

d94bd07f 12/13/2011 04:53 AM Guy Harris

Rename WTAP_ERR_BAD_RECORD to WTAP_ERR_BAD_FILE; it really reports any
form of corruption/bogosity in a file, including in a file header as
well as in records in the file. Change the error message
wtap_strerror() returns for it to reflect that.

Use it for some file header problems for which it wasn't already being...

2929c93e 11/19/2011 03:18 PM Guy Harris

When reporting "sorry, this packet can't be written to a file of that
type" when writing out a capture file (i.e., writing a
per-packet-encapsulation capture to a file type that supports it but
doesn't support one of the packet's encapsulations), report the packet...

bf95c7b5 08/09/2011 05:02 PM Jeff Morriss

Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5608 :

getopt() can/should normally be found in unistd.h, so:

- When testing for getopt(), define that we HAVE_GETOPT instead of
HAVE_GETOPT_H (to avoid confusion).
- Don't attempt to include getopt.h: not all OS's have it (for example,...

8589a0eb 07/21/2011 05:19 PM Jeff Morriss

Remove the snaplen check added in r37633: the change in r37634 makes it
unnecessary.

svn path=/trunk/; revision=38155

3a88c5c7 07/20/2011 08:24 AM Martin Mathieson

Don't sanity-check snaplen against frame length if snaplen is 0.

svn path=/trunk/; revision=38132

7da7f347 06/23/2011 09:50 AM Stig Bjørlykke

Prohibited APIs: strncpy -> g_strlcpy.

svn path=/trunk/; revision=37768

4d603719 06/20/2011 07:31 PM Gerald Combs

Have mergecap, tshark, and editcap write pcap-ng files by default. This
is mainly an attempt to fix the currently-broken "test.sh" step on the
XP buildbot. If this causes too many problems we might want to have
suite-capture.sh:capture_step_snapshot pass "-P" to dumpcap instead....

f783d2d9 06/15/2011 03:23 PM Guy Harris

See if this squelches some compiler warnings.

svn path=/trunk/; revision=37669

90e539b5 06/09/2011 02:27 PM Jeff Morriss

Simplify timestamp checking: only check the packet's timestamp if
check_startstop is set.

Refuse to write packets that do not fit in the file type we're writing. This
allows fuzz testing to be done on JPEGs without generating bogus files (with
packets bigger than the maximum packet size). This fixes...

91bd619c 05/31/2011 04:24 PM Chris Maynard

Handle snaplen before choplen for consistency. Also, if chopping more bytes
than present, just chop all by setting caplen to 0. In all cases, don't touch
len. In other words, change incl_len but leave orig_len alone.

svn path=/trunk/; revision=37488

ec494af0 05/31/2011 11:31 AM Chris Maynard

When a snaplen is specified using "-s <snaplen", if it's smaller than the
original capture file's snaplen, save the new snaplen in the capture file
header so wireshark and capinfos can report it.

svn path=/trunk/; revision=37480

a24687ce 05/23/2011 08:07 PM Gerald Combs

Move the Windows argument list conversion code to a common routine.

svn path=/trunk/; revision=37372

19143302 04/12/2011 02:43 PM Chris Maynard

Don't bother to strcpy() an empty string; just set buf0 = '\0': Coverity 626

svn path=/trunk/; revision=36601

b723ee91 02/04/2011 04:09 PM Sake Blok

From Jason Masker (bug 5240):
`
Allow editcap to chop from beginning of packet for decapsulation

svn path=/trunk/; revision=35832

3bc1fc38 01/06/2011 06:28 PM Gerald Combs

On Windows, convert all of our command-line arguments from UTF-16 to
UTF-8 where we don't already do so. In Wireshark use g_utf16_to_utf8
instead of utf_16to8. This should fix bug 5520.

svn path=/trunk/; revision=35411

03b57df5 12/05/2010 08:34 PM Bill Meier

Fix various typos and spelling errors.

svn path=/trunk/; revision=35126

5db81839 11/24/2010 12:10 PM Chris Maynard

Attempt to fix warnings not previously seen with VS2008EE.

svn path=/trunk/; revision=35024

55197153 11/24/2010 11:24 AM Chris Maynard

When listing encapsulation types with -T or file types with -F, sort them.

svn path=/trunk/; revision=35022

9cf1d897 11/16/2010 03:22 PM Sake Blok

Make editcap -B work like expected: output no packets after the stop time.
Old behavior was to include a packet with a timestamp of 12:00:00.934 if -B "YYYY-MM-DD 12:00:00" was used.

svn path=/trunk/; revision=34913

1ad1bab2 11/01/2010 10:33 AM Jeff Morriss

From Jose Pedro Oliveira via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5353 :

editcap -h sends 9 lines to stderr and the rest to stdout. This problem
affects editcap 1.4.x (branch 1.4) and devel (trunk).

How to duplicate:
1) run "editcap -h"...

a87bdf96 09/16/2010 03:20 PM Gerald Combs

Turn on ASLR via /DYNAMICBASE and DEP via SetProcessDEPPolicy().

svn path=/trunk/; revision=34137

5a307bb6 06/03/2010 03:14 PM Bill Meier

Fix a gcc -Wshadow warning

svn path=/trunk/; revision=33077

07354a18 06/01/2010 08:30 PM Gerald Combs

From Jim Young via bug 4331:

This patch adds a new '-S' option to editcap that will rewrite timestamps of
packets to insure that the new capture file is in strict chronological order.

This option's primary use case is to fixup the occasional timestamps that have...

47e2d758 05/28/2010 04:19 PM Jeff Morriss

Move some code (including the optional objects) into libwsutil

svn path=/trunk/; revision=33012

e4d6610b 01/29/2010 11:09 AM Bill Meier

Fix various gcc -Wshadow warnings.

svn path=/trunk/; revision=31729

7c125a35 12/29/2009 04:04 PM Stephen Fisher

Make edticap behave like the rest of the Wireshark programs where it will
send normal -h output to stdout so it can be paginated and the usage output
to stderr when there was an error in the command arguments.

svn path=/trunk/; revision=31388

5ba1582d 10/25/2009 04:18 PM Gerald Combs

From Jim Young via bug 4162:

This patch limits the number of fractional digits used to calculate the
fractional component of editcap's -t and -w options.

Specifically this patch truncates the fractional component (if any) of the -t
and -w options to 6 and 9 respectively....

98024a00 10/06/2009 12:01 PM Stig Bjørlykke

Invert check for getopt: NEED_GETOPT_H -> HAVE_GETOPT_H
Rename getopt.[ch] -> wsgetopt.[ch] to avoid name collision.

svn path=/trunk/; revision=30370

1e93d53b 07/22/2009 07:59 PM Gerald Combs

Use "svn info" to fetch the version by default. Fetch the repository path as
well. Add the repository path to the version strings.

svn path=/trunk/; revision=29171

7595bc23 06/21/2009 02:55 PM Guy Harris

Clean up the "available XXX type" messages a bit.

svn path=/trunk/; revision=28793

9a8e93d8 06/02/2009 07:14 PM Stig Bjørlykke

If no valid packages was found in the input file we write an empty
header in the output file. This way we at least create a file.

svn path=/trunk/; revision=28617

fa71489b 06/02/2009 01:22 PM Stig Bjørlykke

Only call wtap_dump_close() if we have an open file.

We can have a situation where a file only contains a valid file header
without any packages, so this will avoid a crash.

svn path=/trunk/; revision=28602

5e8e10cf 05/23/2009 04:29 PM Guy Harris

Have fileset_extract_prefix_suffix() print an error message if it fails,
so we don't just exit silently. Don't bother checking the validity of
arguments - it shouldn't be passed NULL fprefix or fsuffix arguments in
the first place, and isn't passed them....