Commit Graph

5542 Commits

Author SHA1 Message Date
Tim Potter 134404b92a Added dissect_ndr_uint16s() utility function for dissecting a buffer
of uint16 values.

svn path=/trunk/; revision=5624
2002-06-05 04:17:47 +00:00
Tim Potter 4616797423 Converted all reply functions to use dissect_doserror() instead of
prs_werror().

Converted RFFPCNEX (FindFirstPrintChangeNotification) to Ronnie's NDR
routines.

Implemented RFNPCNEX (FindNextPrintChangeNotification).  Print
notification data is dissected in a length/buffer format instead of
dissecting as the underlying type (string secdesc, devmode etc).

svn path=/trunk/; revision=5623
2002-06-05 04:15:30 +00:00
Tim Potter 18324cb59a Added a whole lot of print notification constants.
svn path=/trunk/; revision=5622
2002-06-05 04:12:22 +00:00
Gerald Combs 8c89f47bf5 Change bvlc_result_name() and bvlc_function_name() to value_strings.
This fixes a problem where bvlc_result_name() would cause a segfault if
passed a bad value.

svn path=/trunk/; revision=5621
2002-06-05 00:03:06 +00:00
Guy Harris 2dbb4324e3 From Michael Tuexen: treat Darwin/MacOS X like the other BSDs, as its
BPF, in at least some OS versions, acts like the other BPFs in some
versions of other BSDs, and doesn't work with "select()".

svn path=/trunk/; revision=5620
2002-06-04 22:15:12 +00:00
Guy Harris 290fc65130 The "sequential_close" routine for a capture file type, if it has one,
is always called before the "close" routine is called, so the "close"
routine doesn't need to free anything that's freed by the
"sequential_close" routine.

svn path=/trunk/; revision=5619
2002-06-04 21:56:45 +00:00
Guy Harris 15a5bdca30 The frame table isn't needed once we've made a sequential pass through
the packets, as the offsets of the frames have been saved by our caller
(because they need them to pass to the random-read routine); add a
sequential_close routine for Netmon files and free up the frame table in
that routine.

svn path=/trunk/; revision=5618
2002-06-04 21:55:38 +00:00
Guy Harris f103a8a076 From Graeme Hewson: varargs code cleanup in "simple_dialog.c".
svn path=/trunk/; revision=5617
2002-06-04 11:24:35 +00:00
Guy Harris bc5a543e03 From Graeme Hewson:
This fixes some bugs:

	1. With the -S option under Linux, Capture/Stop or ^E was
	ignored until the next packet was read.  This is because
	capture.c wasn't checking for EINTR from select(), which is
	returned when the child receives SIGUSR1 from the parent.

	2. When reading from a pipe, a spurious error message from
	pcap_open_live() was written to stderr.

	3. Error messages from the child in Sync mode were displayed in
	a Warning alert box.

	Also, there's a new subroutine, popup_errmsg(), to replace
	several instances of duplicate code.

svn path=/trunk/; revision=5616
2002-06-04 11:19:59 +00:00
Guy Harris 117f95bb39 Clean up white space.
svn path=/trunk/; revision=5615
2002-06-04 07:48:57 +00:00
Guy Harris 392a7dfc04 Get rid of the "data_src" member of the "frame_data" structure; put it
in the "packet_info" structure instead, as we don't need a pointer for
every single frame in the capture file, just for each frame for which we
currently have an open "epan_dissect_t".

svn path=/trunk/; revision=5614
2002-06-04 07:03:57 +00:00
Guy Harris 1155a2fb43 From Martin Gignac: fix the "cc" field.
svn path=/trunk/; revision=5613
2002-06-03 19:00:00 +00:00
Gerald Combs cf247c7360 Require that the LMP and RSVP message types be greater than 0.
svn path=/trunk/; revision=5612
2002-06-02 23:55:11 +00:00
Gerald Combs 0caa130763 Mark a frame invalid if its message type value exceeds
LMPF_MSG_CHANNEL_STATUS_RESP.

svn path=/trunk/; revision=5611
2002-06-02 21:42:58 +00:00
Gerald Combs 8de8efa284 Mark frames with a subvector length of less than one as being invalid.
svn path=/trunk/; revision=5610
2002-06-02 17:51:00 +00:00
Ronnie Sahlberg 6fb5e72ab1 TAPI interface.
svn path=/trunk/; revision=5609
2002-06-02 12:33:15 +00:00
Ronnie Sahlberg c9f2880cff Another small DCERPC interface from the winsows world implemented. TAPI.
svn path=/trunk/; revision=5608
2002-06-02 12:32:10 +00:00
Guy Harris f8b5326405 Install the Diameter DTD and XML files in the "diameter" subdirectory
of the directory for Ethereal configuration files, not the configuration
file directory, as the Diameter dissector looks for them in the
subdirectory.

svn path=/trunk/; revision=5607
2002-06-01 22:17:22 +00:00
Guy Harris 921f66e709 Install the Diameter DTD and XML files in the "diameter" subdirectory
of the directory for Ethereal configuration files, not the configuration
file directory, as the Diameter dissector looks for them in the
subdirectory.

svn path=/trunk/; revision=5606
2002-06-01 22:11:17 +00:00
Guy Harris ed670cfe44 Put in an update about libpcap 0.7.1 appearing to handle BPF not too
badly (especially given problems that have been seen with DLPI, e.g. not
seeing outgoing packets).

svn path=/trunk/; revision=5605
2002-05-31 10:22:51 +00:00
Tim Potter 501daf1770 Removed some trailing commas from various DCERPC dissectors.
svn path=/trunk/; revision=5604
2002-05-31 00:31:13 +00:00
Guy Harris 1504346601 SMB 0x31 is "Close And Tree Disconnect", not "Close And Tree Discover",
and it looks like "Close" (it's a close that also disconnects the tree
used for the SMB).

svn path=/trunk/; revision=5603
2002-05-30 11:29:38 +00:00
Ronnie Sahlberg ebdfa84dee From KevinM, fixes for the L2TP protocol. Incorrect display filter names.
svn path=/trunk/; revision=5602
2002-05-30 10:09:27 +00:00
Ronnie Sahlberg 7f798e68ee Fixed bug when dissectors forgot to eat the array headers for conformant_run==1
resulting in an assert to abort ethereal.
It shows that the assers worked and that it will find bugs and not allow the dissectors to misdissect the packets.

svn path=/trunk/; revision=5601
2002-05-30 10:06:58 +00:00
Guy Harris 531cb17873 From Albert Chin: fix various non-GCC compiler warnings.
svn path=/trunk/; revision=5600
2002-05-30 08:34:19 +00:00
Guy Harris ca03167c44 Don't pass "tvb_reported_length_remaining(tvb, offset)" as the fourth
argument to "tvb_new_subset()" - just use -1 if the subset tvbuff is to
run to the end of the parent tvbuff.

svn path=/trunk/; revision=5599
2002-05-30 05:26:05 +00:00
Guy Harris 8ec09e1441 Don't pass "tvb_reported_length_remaining(tvb, offset)" as the fourth
argument to "tvb_new_subset()" - just use -1 if the subset tvbuff is to
run to the end of the parent tvbuff.

svn path=/trunk/; revision=5598
2002-05-30 02:04:43 +00:00
Guy Harris 4401f1433f Don't pass "tvb_reported_length_remaining(tvb, offset)" as the fourth
argument to "tvb_new_subset()" - just use -1 if the subset tvbuff is to
run to the end of the parent tvbuff.

svn path=/trunk/; revision=5597
2002-05-30 01:56:55 +00:00
Guy Harris b5f0786318 Don't assume that just because a purported font name begins with "-"
it's an XLFD font name.

svn path=/trunk/; revision=5596
2002-05-30 00:44:50 +00:00
Tim Potter 1852e00c8a Removed debugging fprintf calls.
svn path=/trunk/; revision=5595
2002-05-30 00:20:32 +00:00
Guy Harris dc4106b0b1 From Martin Gignac: fix Sender-Visibility field to use the right
value_string table.

Clean up capitalization.

svn path=/trunk/; revision=5594
2002-05-29 22:52:55 +00:00
Guy Harris f2880aad6b AODV6 support, from Antti Tuominen.
svn path=/trunk/; revision=5593
2002-05-29 21:32:23 +00:00
Guy Harris 2a8dfde425 Display unsigned quantities with "%u".
svn path=/trunk/; revision=5592
2002-05-29 19:55:55 +00:00
Guy Harris a6b22a6bec Update the item on turning off name resolution to mention the "-N" flag
and the preference item.

svn path=/trunk/; revision=5591
2002-05-29 19:16:40 +00:00
Guy Harris 0feb7affba Java RMI protocol support, from Michael Stiller.
svn path=/trunk/; revision=5590
2002-05-29 18:52:28 +00:00
Guy Harris 4403c56558 Put the raw data items at the top level in the protocol tree, as was the
case before recent changes.

Just use -1 as the last argument to "tvb_new_subset()" if the subset
tvbuff is to run to the end of the parent tvbuff.

svn path=/trunk/; revision=5589
2002-05-29 08:55:28 +00:00
Guy Harris 20a92d3ffc From Michal Melerowicz:
Fixed TFT decoding and processing PPP payload inside of GTP
	protocol conf options

That change also put all GTP preferences under a "gtp" heading; put in
another hack so that your old "gtpv0" and "gtpv1" settings are recognized.

svn path=/trunk/; revision=5588
2002-05-29 07:35:55 +00:00
Guy Harris fbb370078f From Jochen Friedrich: RFC 2353 SNA-over-LLC-over-UDP support, and RFC 2043
SNA-over-PPP and SNA-over-LLC-over-PPP support.

svn path=/trunk/; revision=5587
2002-05-29 03:08:02 +00:00
Gerald Combs ee0bdc5751 From Olivier Dreux: Add PPP support to GTP.
svn path=/trunk/; revision=5586
2002-05-29 03:07:02 +00:00
Guy Harris 7d72c3c429 Check for EtherPeek files before checking for pppdump files; the
EtherPeek heuristic is a bit stronger, and there's at least one
EtherPeek capture that gets misidentified as a pppdump capture if you
check for pppdump captures first.

svn path=/trunk/; revision=5585
2002-05-29 02:19:49 +00:00
Guy Harris 2e936ea423 Fail somewhat more gracefully when confronted with a bad file.
svn path=/trunk/; revision=5584
2002-05-29 02:11:57 +00:00
Guy Harris 12bc4ef56d Add an item from UNI 3.0.
Fix a typo.

svn path=/trunk/; revision=5583
2002-05-28 23:29:25 +00:00
Guy Harris 363dc049c2 Streaming mode is 0x02, not 0x00.
svn path=/trunk/; revision=5582
2002-05-28 23:25:15 +00:00
Guy Harris 49fe4e742c From Joerg Mayer: dissect both the BOOTP server and client ports as
bootp/DHCP, to handle PXE clients that send BOOTP requests to
destination ports other than 67.

svn path=/trunk/; revision=5581
2002-05-28 20:08:09 +00:00
Ronnie Sahlberg 34a484d0d8 DCERPC Browser protocol updates. Dissection completed of all functions and structures for DCERPC Browser protocol used by windows hosts.
Dissector dissects all types, all structs and all functions. However, the names of scalars, aggregates and functions are not known and have to be filled in later when users report what the fields actually means.

The dissector also contains the entire IDL definition which can be extracted by running
cat packet-dcerpc-browser.c | grep IDL | sed -e "s/.*IDL//g" >browser.idl

Please keep the idl definitions updated when changing this file.

svn path=/trunk/; revision=5580
2002-05-28 13:59:20 +00:00
Ronnie Sahlberg 6bb75ed7dd Dissection of some functions and structure for dcerpc browser protocol.
svn path=/trunk/; revision=5579
2002-05-28 13:08:07 +00:00
Ronnie Sahlberg dbe5dc5fa7 Added skeleton dissector for DCERPC Browser protocol
svn path=/trunk/; revision=5578
2002-05-28 12:07:59 +00:00
Ronnie Sahlberg 7a5c795f50 More dissection of EPM. Tower and tower floors dissected. (partially)
svn path=/trunk/; revision=5577
2002-05-28 11:45:56 +00:00
Guy Harris 586e97727f Add support for old NetXRay format.
svn path=/trunk/; revision=5576
2002-05-28 02:39:15 +00:00
Guy Harris 7d85ca00df Clean up the data structures for the color filter code a bit. The old
"colfilter" structure contained items of use only when the colorizing
dialog was up, so make the items in it private to "gtk/color_dlg.c".
Make the "Edit" and "Delete" buttons sensitive only when a row is
selected, and make the "Up" and "Down" buttons sensitive only when a row
is selected *and* that row has somewhere to move in the specified
direction.

svn path=/trunk/; revision=5575
2002-05-27 22:00:37 +00:00