Commit Graph

5445 Commits

Author SHA1 Message Date
Guy Harris 93be885871 The old URL for the LANalyzer file format is no longer valid; replace it
with one that's currently valid.

svn path=/trunk/; revision=5527
2002-05-23 06:34:10 +00:00
Guy Harris a0b8690230 The "fname" argument to "save_cap_file()", and "cf->filename" - and thus
"from_filename" - are both null-terminated strings; compare them with
"strcmp", not "strncmp()".  ("cf->filename" is a "char *", so
"sizeof(cf->filename)" is not the right third argument to "strncmp()" in
any case, as it's the size of a pointer, which is probably either 4 or 8
bytes.)

Make the dialog box for "Can't save over current capture file" an
ESD_TYPE_CRIT dialog box, as it's a fatal error.

svn path=/trunk/; revision=5526
2002-05-23 06:10:56 +00:00
Guy Harris e2630eed79 Command-line interface cleanups, from Graeme Hewson:
- Exit if an error is found in the options or arguments.

	- In print_usage(), improve the visibility of any getopt() error
	  message by suppressing the version information when -h is not
	  specified, and by adding an empty line.

	Ethereal:

	- If the -k option is specified, use the interface in the preferences
	  file, if present.

	- Prevent the user from specifying any hidden options which are used
	  internally in -S mode.

	Tethereal:

	- Fix a memory leak in the processing of the -f option.

	- In print_usage(), change "capture file type" to "output file type",
	  which I think is clearer; move the -q flag from the non-libpcap case
	  to the libpcap case.

svn path=/trunk/; revision=5525
2002-05-22 23:22:56 +00:00
Guy Harris 7da9451781 Capture file formats that can be written need a "short name" to let you
specify them on the command line of Tethereal/editcap/etc. (and to keep
those programs from dropping core when enumerating the names); now that
we can write Windows Sniffer 2.00x-format files, give them a short name.

svn path=/trunk/; revision=5524
2002-05-22 22:57:54 +00:00
Ronnie Sahlberg d1fa53c605 Updated NS_LS_DRIVER to work with both pre-HPUX11 and HPUX11.
Added support for NS_LS_TCP, NS_LS_UDP, NS_LS_LOOPBACK, NS_LS_ICMP and
unnamed subsystem 0xb9 (which contains ethernet headers in my captures frames).
However, NS_LS_ICMP will not be dissected since we dont have a
RAW_ICMP wiretap encapsulation type.
Updated decoding of usec timestamp for HPUX11 since HPUX11 has 0.1us
resolution for the scalar in this field.

YMMV but all these ones works for me from nettl traces from HPUX11.

svn path=/trunk/; revision=5523
2002-05-22 10:53:17 +00:00
Guy Harris 134b903afa Dissect the headers of VJ compressed packets even if decompression is
turned off or we don't know the direction of the traffic.

svn path=/trunk/; revision=5522
2002-05-22 10:15:28 +00:00
Guy Harris cbe8deb189 Fix a typo.
svn path=/trunk/; revision=5521
2002-05-22 09:52:14 +00:00
Guy Harris bd8337321a Maintain separate "discard compressed frames" state per connection.
Put the array of connection states into the per-direction state
structure; its size is fixed, as the connection number field size is 1
byte.  Get rid of the "rslot_limit" member, as the number is fixed.

Get rid of the per-state "next" pointer, as it's unused.

Process uncompressed frames even if VJ decompression is turned off, and
even if the "discard compressed frames" flag is set on the connection,
as there's no decompression to do.

If the full IP and TCP header isn't available in an uncompressed frame,
discard subsequent compressed frames.

Only use the "discard compressed frames" flag on the first pass through
the capture; on subsequent passes, the presence of an "uncompressed
header" item attached to the frame indicates whether we could decompress
it or not (the "discard compressed frames" flag would merely indicate
the *last* state it had for that connection, which might not have been
the state at the time we saw that frame).

svn path=/trunk/; revision=5520
2002-05-22 09:49:28 +00:00
Guy Harris 97a7ae2cba Various fixes from Mike Frisch (remove unused arguments, make variables
unsigned where appropriate).

svn path=/trunk/; revision=5519
2002-05-21 22:31:36 +00:00
Guy Harris 66e28fbb4a Fixes to BGP problems, from Dirk Steinberg.
Add some additional bounds checking to "decode_MPLS_stack()" so as not
to overflow the buffer handed to it.

svn path=/trunk/; revision=5518
2002-05-21 21:55:47 +00:00
Guy Harris 2667dfed9a From Hannes Gredler: fix misuse of "&&" when "&" was intended.
svn path=/trunk/; revision=5517
2002-05-21 21:44:28 +00:00
Guy Harris a39b66edaf From Mike Frisch: fix most of the TODOs.
Make a pile of things static.

Remove declarations of no-longer-extant routines from "packet-nfs.h".

svn path=/trunk/; revision=5516
2002-05-21 21:13:42 +00:00
Ronnie Sahlberg 3143c595a4 Option to make filtering on nfs fhandles stateful.
When this ption is enabled in Protocols/NFS displayfilters for fhandle fields
such as nfs.fh.{hash|name|full_name} will find both the request and matching
response packets even if the fhandle is only present in one of the packets.
The option supports all NFS and related protocols which use nfs fhandles
including async NLM.
The option will not work with nfs packets containing multiple fhandles in
one PDU, nor will it work if tcp collapses multiple segments/pdus into
one larger segment.
It only works for async NLM if one first enables the MSG/RES stateful
matching for async NLM.

svn path=/trunk/; revision=5515
2002-05-21 10:17:30 +00:00
Guy Harris 198c46df1e Update the README to refer to "--without-ucdsnmp" rather than
"--disable-snmp", and to note that UCD SNMP 4.2.4 *or later* fix the
potential buffer overflow problems.

svn path=/trunk/; revision=5514
2002-05-20 19:13:20 +00:00
Tim Potter 8b8f0130a3 Implemented getprinterdriver2, levels 1 and 3.
svn path=/trunk/; revision=5513
2002-05-20 06:53:31 +00:00
Guy Harris ff525dd3f7 From Yaniv Kaul: update to draft-ietf-ipsec-udp-encaps-02, which removed
UDP-encapsulated AH packet support.

svn path=/trunk/; revision=5512
2002-05-20 01:29:07 +00:00
Guy Harris 04b133f82e From Hannes Gredler: fix to label stack handling for withdrawn routes.
svn path=/trunk/; revision=5511
2002-05-20 01:01:11 +00:00
Guy Harris 44580a93ca Don't include the FCS in the tvbuff handed to "dissect_ppp_common()", so
that it's not included in the tvbuff handed to subdissectors.  Use that
tvbuff to compute the FCS.

Properly handle the FCS in frames that don't include all the captured
data.

In VJ-compressed packets, put the VJ compression information into the
protocol tree, and set the Protocol and Info columns, and don't worry
about the CRC - as per the above, it's no longer in the tvbuff (and
never *was* in the tvbuff in some cases).

Also, clean up some other stuff in the VJ dissector.

svn path=/trunk/; revision=5510
2002-05-20 00:56:30 +00:00
Tim Potter 6519b11bcb Some miscellaneous updates:
- implemented WritePrinter, DeletePrinterData

 - fixed dissection of various printerdata routines to use a more
   consistent field naming scheme and convert to ndr functions

svn path=/trunk/; revision=5509
2002-05-20 00:36:04 +00:00
Gerald Combs 61473361f8 Add Ronnie's notes about compiling under Cygwin.
svn path=/trunk/; revision=5508
2002-05-19 17:12:25 +00:00
Gerald Combs 1a94431c7a Get NEWS ready for the 0.9.4 release.
svn path=/trunk/; revision=5506
2002-05-19 14:01:07 +00:00
Guy Harris e7aa22129f From Michael Tuexen: show the filler only if present.
svn path=/trunk/; revision=5505
2002-05-18 22:25:40 +00:00
Guy Harris 1606d119fb Set the Info column for compressed and uncompressed TCP.
svn path=/trunk/; revision=5504
2002-05-18 21:19:48 +00:00
Guy Harris e63d569f57 From Michael Tuexen: updates to later IETF drafts:
draft-ietf-tsvwg-addip-sctp-05.txt for the add-IP extension
	draft-stewart-prsctp-00.txt for the 'Partial Reliability' extension
	draft-ietf-tsvwg-sctpcsum-07.txt

svn path=/trunk/; revision=5503
2002-05-18 20:33:53 +00:00
Gerald Combs 5ccb03e19f Make the default SNMP build behavior "ifpresent" instead of "yes", so things
work as they should by default on systems without SNMP libraries.

svn path=/trunk/; revision=5502
2002-05-18 17:17:12 +00:00
Gerald Combs 0d33d7280f Add initial support for GIOP.
svn path=/trunk/; revision=5501
2002-05-18 14:58:00 +00:00
Gerald Combs 024306cdcf Increment versions to 0.9.4, get NEWS current to April 25 (more NEWS to
come).

svn path=/trunk/; revision=5500
2002-05-18 04:00:35 +00:00
Gerald Combs 0bc4c2d329 In the Windows capture dialog, place the interface description before the
interface name.

svn path=/trunk/; revision=5499
2002-05-18 02:41:46 +00:00
Gerald Combs 8682b694f1 Add a "break;" after a "default:" to fix an MSVC++ compilation error.
svn path=/trunk/; revision=5498
2002-05-18 02:05:47 +00:00
Gilbert Ramirez 5a4e9fa396 Update from Greg Morris.
Increase the max number of allowable req_cond_index's.

svn path=/trunk/; revision=5497
2002-05-17 23:17:22 +00:00
Ronnie Sahlberg bd351e3709 Added support for HPUX11 NETTL captures for the NS_LS_DRIVER type.
It works for such captures containing 100baseT captures. It may explode on
other link types.

svn path=/trunk/; revision=5496
2002-05-17 09:53:20 +00:00
Gilbert Ramirez f58590ef4c DirectoryBase should be a uint32.
svn path=/trunk/; revision=5495
2002-05-17 05:00:50 +00:00
Guy Harris 529e38321f From Andrew Esh: support for additional interest levels in
TRANS2_QUERY_FS_INFORMATION, and fix handling of level 1022 to treat the
file name as always being in Unicode.

svn path=/trunk/; revision=5494
2002-05-16 23:36:43 +00:00
Gerald Combs d0dab8abc2 Set the default for "--want_ucdsnmp" back to "yes", since overflow problems
have been fixed in recent versions.

svn path=/trunk/; revision=5493
2002-05-16 21:47:22 +00:00
Ashok Narayanan b1f780edf3 - Major cleanup of the RSVP dissector
- Added support for OIF O-UNI 1.0 (as per 125.7 standard)

svn path=/trunk/; revision=5492
2002-05-16 20:11:32 +00:00
Guy Harris 2ee99739c3 From Andrew Esh: fix a compiler warning.
svn path=/trunk/; revision=5491
2002-05-16 19:29:03 +00:00
Guy Harris 1e85fff54b Fix from Mark Burton.
svn path=/trunk/; revision=5490
2002-05-16 10:03:31 +00:00
Guy Harris e1b2d0ef85 Move the #defines for NCP packet types to "packet-ncp-int.h", and use
them in "packet-ncp2222.inc".

The page at

	http://www.odyssea.com/whats_new/tcpipnet/tcpipnet.html

indicates that a positive ACK (0x9999) NCP packet has the same
completion code and connection status fields as a reply (0x3333) packet
(but nothing after them); hand "dissect_ncp_reply()" the packet type as
one of its arguments, and have it handle positive ACK packets as well as
reply packets.

It also indicates that bit 4 of the connection status indicates that the
server is unavailable, and the page at

	http://www.unm.edu/~network/presentations/course/appendix/appendix_f/tsld088.htm

speaks of that and of the significance of other bits; put a comment in
"ncp2222.py", before the "hf_ncp_connection_status" field, about that.

From looking at a capture, it appears that a "destroy service
connection" (0x5555) packet should be treated like a "create service
connection" (0x1111) packet and be handed to "dissect_ncp_request()".

Note that perhaps watchdog packets should be handled by
"dissect_ncp_reply()" as well.

svn path=/trunk/; revision=5489
2002-05-16 09:59:52 +00:00
Ronnie Sahlberg e39ee24b14 Added function names for all v2 and v3 functions for the SUN NFS ACL protocol stub dissector.
svn path=/trunk/; revision=5488
2002-05-16 08:57:12 +00:00
Ronnie Sahlberg a0ce004fcb New dissector for SUN NFS AUTH nfs authentication protocol, stubs only.
svn path=/trunk/; revision=5487
2002-05-16 08:51:17 +00:00
Ronnie Sahlberg 0d0f5f486d Stubs for new dissector for SUN NFS AUTHentication protocol.
svn path=/trunk/; revision=5486
2002-05-16 08:50:00 +00:00
Gilbert Ramirez 0df97ac2b6 For response packets, add a field showing the number of the frame
containing the request packet.

svn path=/trunk/; revision=5485
2002-05-16 03:31:34 +00:00
Gerald Combs aca0488ace Fix a return type mismatch for get_CDR_wchar and a parameter type mismatch
for get_CDR_octet_seq.  The one for get_CDR_octet_seq was preventing
compilation under MSVC++.

svn path=/trunk/; revision=5484
2002-05-16 02:43:53 +00:00
Guy Harris 414a5e8fb9 Don't dissect the stuff after the RPC information in an RPC reply as a
protocol reply if:

	we got anything other than SUCCESS for MSG_ACCEPTED;

	we got MSG_DENIED;

	we got anything other than MSG_ACCEPTED or MSG_DENIED;

as there isn't a protocol reply in there.

Just use "-1, -1" as arguments to "tvb_new_subset()" if you want the new
tvbuff to run to the end of the packet - there's no need to call
"tvb_reported_length_remaining()".

svn path=/trunk/; revision=5483
2002-05-15 23:01:51 +00:00
Gilbert Ramirez c914f315a6 Add Greg Morris as author of NCP dissector.
Remove paragraph begging for help on NCP dissector from README.

svn path=/trunk/; revision=5482
2002-05-15 21:50:27 +00:00
Guy Harris 0548e8d0f3 From Hannes Gredler: labeled unicast support for BGP.
svn path=/trunk/; revision=5481
2002-05-15 21:40:25 +00:00
Guy Harris 745bb18d57 Get rid of the "Connection Number High" entry - the "Connection Number"
entry covers both bytes of the connection number (as well as the number
in the middle - alas, there's no way to create a protocol tree item that
covers a discontiguous range of bytes).

svn path=/trunk/; revision=5480
2002-05-15 21:37:19 +00:00
Guy Harris 84f9e6b068 Get rid of an assigned-to-but-not-used variable, and eliminate another
variable that's used only once.

svn path=/trunk/; revision=5479
2002-05-15 21:18:19 +00:00
Guy Harris 7b662d6129 NCP-over-UDP doesn't have a special header, as NCP-over-TCP does.
Dissect NCP watchdog packets.

Clean up the handling of NCP packet-specific headers and payload a bit.

Put in a protocol tree item for the upper 8 bits of the connection
number.

Make the "sorry, we don't dissect this yet" protocol tree item cover the
part we *don't* dissect, rather than covering the packet type.

Use the data dissector to dissect the data in a burst mode packet.

svn path=/trunk/; revision=5478
2002-05-15 21:17:21 +00:00
Guy Harris 870c706685 From Andrew Esh: support for interest level 1003 and 1007 in
TRANS2_QUERY_FS_INFORMATION.

svn path=/trunk/; revision=5477
2002-05-15 19:37:26 +00:00