Commit graph

13099 commits

Author SHA1 Message Date
Guy Harris
dc2cb627bd Add a Makefile.
svn path=/trunk/; revision=13370
2005-02-10 03:10:08 +00:00
Ulf Lamping
6d3d4bb708 bugfix for sync_mode captures, wasn't started correctly (cf_callback_invoke(cf_cb_live_capture_started); was never called)
svn path=/trunk/; revision=13369
2005-02-10 01:55:36 +00:00
Lars Roland
338bda08bd clean up makefiles.
especially /trunk/Makefile.nmake doesn't have to include
/trunk/epan/Makefile.common anymore.

svn path=/trunk/; revision=13368
2005-02-10 01:26:19 +00:00
Lars Roland
034a6f9b57 fix svn properties
svn path=/trunk/; revision=13367
2005-02-09 23:55:14 +00:00
Lars Roland
ec9ca01616 Move the following files from /trunk to /trunk/epan:
asn1.[ch]
follow.[ch]
ptvcursor.[ch]
reassemble.[ch]
xmlstub.[ch]

fix #include statements accordingly.

svn path=/trunk/; revision=13366
2005-02-09 23:38:00 +00:00
Anders Broman
125bb2d278 Add Tim Endean
svn path=/trunk/; revision=13365
2005-02-09 22:43:57 +00:00
Anders Broman
e8f8e851c0 From Tim Endean: INAP dissector.
svn path=/trunk/; revision=13364
2005-02-09 22:35:49 +00:00
Anders Broman
38c428010b From Tim Endean: INAP dissector.
svn path=/trunk/; revision=13363
2005-02-09 22:31:40 +00:00
Anders Broman
60e1e4cd04 Fix dissection of some opcodes etc.
svn path=/trunk/; revision=13361
2005-02-09 21:55:55 +00:00
Anders Broman
eabb62bced Fix decoding of some opcodes etc.
svn path=/trunk/; revision=13360
2005-02-09 21:54:57 +00:00
Guy Harris
8f265808fb From Deepak Jain: add support for some Cisco L2TPv3 AVPs, always show
the numerical value of the pseudowire type, and show the Remote End ID
AVP as text rather than binary data.

svn path=/trunk/; revision=13359
2005-02-09 09:25:54 +00:00
Lars Roland
050f70e8e0 Set Registry key for starting NPF service to "Auto Start" and not "System Start".
svn path=/trunk/; revision=13358
2005-02-08 22:10:04 +00:00
Lars Roland
186683631f use "guint" instead of "uint".
"uint" is not available on Windows

svn path=/trunk/; revision=13357
2005-02-08 21:12:54 +00:00
Guy Harris
83c47dc3d6 From Jon Ringle: add a preference to allow packets with an RTP version
of 0 to be dissected as STUN packets, to support dissecting of
application that follow the ICE methodology described in
draft-ietf-mmusic-ice-03.

Remove some extra spaces at the end of tags for preferences.

svn path=/trunk/; revision=13356
2005-02-08 20:54:08 +00:00
Ulf Lamping
179d4cca95 fix a capture bug if the capture filter wasn't valid to get back to "empty" state.
instead of already invoking cf_cb_live_capture_started in capture.c, I've introduced the new event cf_cb_live_capture_prepare which only has to set the main windows title and nothing more.

svn path=/trunk/; revision=13355
2005-02-08 19:57:16 +00:00
Lars Roland
fe83d6527b Move h225-persistentdata.[ch] to epan,
as its code is linked into libethereal.dll.

svn path=/trunk/; revision=13354
2005-02-08 19:36:20 +00:00
Lars Roland
8b1d64e0f2 Remove the buggy h323 conversations tap.
It is superseded by the superior Voip Call analysis.

svn path=/trunk/; revision=13353
2005-02-08 19:15:56 +00:00
Ulf Lamping
9a4881e142 bringing the packet details context menu item "Expand Tree" back as "Expand Subtrees". Renaming this, as this makes it much more obvious that potentially more than subtree (recursively) will be expanded
svn path=/trunk/; revision=13352
2005-02-08 19:12:17 +00:00
Anders Broman
b956a7c0a8 From LEGO
patch adding few more fields to RADIUS (I and O Packets and Octets)

svn path=/trunk/; revision=13351
2005-02-08 18:51:27 +00:00
Anders Broman
35be3172ce From : Susanne Edlund
patch for NSIP to fix a bug in packet SNS_DELETE.

svn path=/trunk/; revision=13350
2005-02-08 18:50:05 +00:00
Lars Roland
1a57492eca Add a section to the installer, which sets following key to "1" on WIN NT, if the key is available.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NPF\Start

With this key set to 1, the NPF service is started automatically at startup and then even users with restricted privilegies should be able to access Network Devices for capturing. 
See also:
http://winpcap.polito.it/misc/faq.htm#Q-18

svn path=/trunk/; revision=13349
2005-02-08 02:34:15 +00:00
Guy Harris
01b33c922d Fix up the suppression of packet printing and packet count printing so
that:

	packets are printed iff we're not saving packets to a file and
	"-q" wasn't specified;

	packet counts are printed iff we're capturing (i.e., not reading
	from a file) and "-q" wasn't specified.

svn path=/trunk/; revision=13348
2005-02-07 21:40:53 +00:00
Lars Roland
66194e3f4a And finally (I hope) the last part from the patch
from Alejandro Vaquero:
 
  patch for "Voip analysis" to get the LRQ/LCF/LRJ messages included in the H323 calls for Gatekeeper to Gatekeeper configurations

svn path=/trunk/; revision=13347
2005-02-07 21:09:23 +00:00
Guy Harris
802a3977bf Make Ethereal and Tethereal compile if we're building without libpcap.
svn path=/trunk/; revision=13346
2005-02-07 20:52:59 +00:00
Ulf Lamping
d2cf31dc22 fix a bug if capturing into named files is used
svn path=/trunk/; revision=13345
2005-02-07 20:38:10 +00:00
Anders Broman
30a00ead93 From Alejandro Vaquero :
Find attached a patch for "Voip analysis" to get the LRQ/LCF/LRJ messages included in the H323 calls for Gatekeeper to Gatekeeper configurations

svn path=/trunk/; revision=13344
2005-02-07 20:30:27 +00:00
Ulf Lamping
035dd093f7 when building the argv string, use save_file_fd_str instead of save_file_fd to avoid confusion with the capture_opts field
svn path=/trunk/; revision=13343
2005-02-07 20:14:22 +00:00
Guy Harris
d01ae28b6f Suppress the packet counts when we're reading from a file.
svn path=/trunk/; revision=13342
2005-02-07 19:42:32 +00:00
Guy Harris
da36197902 Tethereal can write to a file in binary even if not built with libpcap.
svn path=/trunk/; revision=13341
2005-02-07 19:33:49 +00:00
Guy Harris
6e58e3984b Clean up indentation.
The default for "capture_options.save_file" is a null pointer, meaning
we're not writing to a save file, we're writing out the dissection as
text.

svn path=/trunk/; revision=13340
2005-02-07 19:11:45 +00:00
Jörg Mayer
243a2b832e In case we have an unknown vendor tag, just decode the vendor from
manuf.

svn path=/trunk/; revision=13339
2005-02-07 15:55:13 +00:00
Anders Broman
1fb60a0659 From Alejandro Vaquero :
Find attached a patch for "Voip analysis" to get the LRQ/LCF/LRJ messages included in the H323 calls for Gatekeeper to Gatekeeper configurations

svn path=/trunk/; revision=13338
2005-02-07 08:58:40 +00:00
Anders Broman
2a9f29ce77 From Alejandro Vaquero :
Find attached a patch for "Voip analysis" to get the LRQ/LCF/LRJ messages included in the H323 calls for Gatekeeper to Gatekeeper configurations

svn path=/trunk/; revision=13337
2005-02-07 08:57:47 +00:00
Anders Broman
c765d211e9 From Alejandro Vaquero :
Find attached a patch for "Voip analysis" to get the LRQ/LCF/LRJ messages included in the H323 calls for Gatekeeper to Gatekeeper configurations

svn path=/trunk/; revision=13336
2005-02-07 08:56:39 +00:00
Anders Broman
bc04baef42 From LEGO:
- fixes a leak in analize_pdu()
 - fixes a typo in analize_pdu()
 - fixes a crash in scs_unsubscribe() 
 - save a malloc and a free in get_pdu_fields()

svn path=/trunk/; revision=13335
2005-02-07 08:54:24 +00:00
Guy Harris
82908eac11 The welcome pane isn't scrollable, so add it to the scrolling window
with a viewport.

svn path=/trunk/; revision=13334
2005-02-07 03:35:51 +00:00
Guy Harris
9ab2eaa9ce In the child process, capture_opts->fork_child is 0, not -1, so, in that
case, don't attempt to send a signal to the child.

Expand a comment.

svn path=/trunk/; revision=13333
2005-02-07 03:13:51 +00:00
Guy Harris
79a39eddbc Move the code to set the title on a window when a capture is in progress
to the "start live capture" callback, and call that from "do_capture()".

When opening a capture file, don't pop up the "What do you want to do?"
pane when closing any existing file you have open, as we're just going
to put the regular view up right after that.

svn path=/trunk/; revision=13332
2005-02-07 02:09:30 +00:00
Guy Harris
641106f21d Declare "cf_callback_t" before using it in a further declaration.
Mark the "func" argument to "cf_callback_remove()" as unused.

Get rid of the "iface" argument to "cf_start_tail()", as it's no longer
used.

svn path=/trunk/; revision=13331
2005-02-07 01:32:53 +00:00
Ulf Lamping
1c6b2cf0e3 Instead of calling each single thing when doing/finish a file operation, file.c shouldn't call all the GUI related functions itself, instead throwing some kind of Events to it's caller(s).
I've implemented a very simple callback mechanism which provides exactly this. I've tried GHook from GLib before, but this doesn't seem to be the right thing, as it's too inflexible for the purpose here.

So I've implemented a callback function in main.c which receives all "events" and spreads them to menu, statusbar and itself.

I would see this implementation as a prototype which may need  improvements. Please comment the changes.

svn path=/trunk/; revision=13330
2005-02-07 00:54:46 +00:00
Guy Harris
7be4ff2a92 Clean up indentation.
svn path=/trunk/; revision=13329
2005-02-07 00:31:45 +00:00
Guy Harris
1041ccdbe5 Don't have "set_menus_for_captured_packets()" call
"main_set_for_capture_file()"; it should only deal with menus, not
anything else - and it gets called while the menus are being set up,
which is before the main window has been completely created, so
"main_widgets_show_or_hide()", which is called by
"main_set_for_capture_file()", gets errors trying to show or hide
widgets the pointers to which are null.

svn path=/trunk/; revision=13328
2005-02-06 23:16:05 +00:00
Guy Harris
9a04fd314d Get rid of extra blank line at the end.
svn path=/trunk/; revision=13327
2005-02-06 23:06:23 +00:00
Guy Harris
2b7b39bb6f "iface" is now a member of "capture_opts", not "cfile".
svn path=/trunk/; revision=13326
2005-02-06 22:21:51 +00:00
Guy Harris
60ad11d708 Get rid of a few cf_get_ references missed by the previous checkin.
svn path=/trunk/; revision=13325
2005-02-06 22:19:53 +00:00
Guy Harris
3b088c63d7 Include <ctype.h> for "isspace()".
#ifdef a variable used only if _WIN32 is defined.

svn path=/trunk/; revision=13324
2005-02-06 22:18:15 +00:00
Guy Harris
d83f7865ff Clean up indentation.
svn path=/trunk/; revision=13323
2005-02-06 22:06:31 +00:00
Guy Harris
a9cf4fccb6 Back out the previous change - we were setting "datafiledir", not
"datafile", and code in epan/filesystem.c expectes DATAFILE_DIR to be
set to the "ethereal" subdirectory of the data directory, not to the
data directory itself.

svn path=/trunk/; revision=13322
2005-02-06 21:36:11 +00:00
Ulf Lamping
1749a91a96 minor code cleanup
svn path=/trunk/; revision=13321
2005-02-06 21:34:59 +00:00
Ulf Lamping
3a63719e38 another two steps towards privilege seperation:
move another two capture related fields (iface and cfilter) from cfile to capture_opts

also move the handling of capture related command line options from main.c to capture.c, that way a future privilege seperated capture program can use the same code to parse it's command line than Ethereal. 
It might be even possible to share this parser code even with Tethereal, didn't took a closer look at this.

svn path=/trunk/; revision=13320
2005-02-06 21:20:35 +00:00