Commit Graph

1315 Commits

Author SHA1 Message Date
Guy Harris d1fa349620 Updates from James Coe.
svn path=/trunk/; revision=1337
1999-12-15 01:48:58 +00:00
Guy Harris cc4e9f698b One field in the NetXRay header appears to be the number of frames in
the capture; set it to that when writing the capture.

Support Token Ring and FDDI captures (as per the network type in the
file header appearing to be either the NDIS network type, or the NDIS
network type minus 1 - I forget whether Ethernet has an NDIS type of 0
or 1).

Don't write the file header twice, keeping a static copy of it around,
as Wiretap code isn't supposed to keep any static data around; instead,
write it only when we're done writing out all the records (as we do on
Network Monitor captures).

Compute the time stamps when writing the file.

Give Windows Sniffer 1.1-format a short name, so "editcap" doesn't dump
core or print "(null)" in its usage message.

WTAP_ENCAP_NULL isn't supported by NetMon; don't write it.

svn path=/trunk/; revision=1336
1999-12-15 01:34:17 +00:00
Guy Harris 12610535b4 Patches from Bert Driehuis to:
1) fix the check for the IE identifier to check all bits,
	   including the topmost bit;

	2) print all fields in the Date IE as 2 digits.

svn path=/trunk/; revision=1335
1999-12-14 23:25:17 +00:00
Richard Sharpe f65a512676 More patches for packet-smb.c ...
Now should be decoding the names of lots more LanMan API request. These
were culled from Samba.  Would be good to go through and give names to the
fields as well.

Will soon decode the response structures returned and then will look at
ways to specify that built-in routines should be called to decode an element.

I also need some captures with UNICODE in them. Anyone got any? Someone
sent in a patch for UNICODE handling, but I did not realize what it was and
now the code has diverged so far it is hard to apply the patch ...

Send captures to rsharpe@ns.aus.com./

svn path=/trunk/; revision=1334
1999-12-14 23:16:59 +00:00
Nathan Neulinger f78124579c more work on netxray, still not sniffer compatible though
svn path=/trunk/; revision=1333
1999-12-14 21:59:07 +00:00
Nathan Neulinger 65648d9ed6 Added a few more command labels
svn path=/trunk/; revision=1332
1999-12-14 21:57:03 +00:00
Olivier Abad 8e8821b4a3 Changed the meaning of the 0x80 bit in "fs" in a frame2 record (from DTE
instead of from DCE).
I can now open a RADCOM X.25 capture in ethereal, save it as sniffer, and
read it with a sniffer. The frame directions are correct. (BTW, the
snifconv.exe tool provided by RADCOM doesn't work with X.25 captures).

svn path=/trunk/; revision=1331
1999-12-14 12:41:13 +00:00
Uwe Girlich f71e02dca0 More dissectors for NFS v3. Still 7 functions are missing.
NFS reply status now searchable with the filter expression nfs.status.

svn path=/trunk/; revision=1330
1999-12-14 11:53:19 +00:00
Uwe Girlich 85ba8ceb82 Some new constants added.
svn path=/trunk/; revision=1329
1999-12-14 11:48:03 +00:00
Uwe Girlich aa0c302ab2 New function dissect_rpc_bool() for generic boolean value parsing.
Duplicate transactions can be found with the filter rpc.dup or more specific
rpc.call.dup and rpc.reply.dup.

svn path=/trunk/; revision=1328
1999-12-14 11:43:59 +00:00
Uwe Girlich 6b71ec4395 Prototype for dissect_rpc_bool().
svn path=/trunk/; revision=1327
1999-12-14 11:40:27 +00:00
Guy Harris dbc4cd9530 Sigh. Some versions of CMU SNMP appear to lack the SMI_ #defines; for
now, assume that if they lack that, they lack "sprint_value()".

svn path=/trunk/; revision=1326
1999-12-14 10:16:11 +00:00
Guy Harris 7e0d32b3d9 *** empty log message ***
svn path=/trunk/; revision=1325
1999-12-14 07:22:56 +00:00
Gilbert Ramirez 423b152c0c Do a better check of 'bend'. The code works w/o it, but only because
I got lucky when I introduced 'bend'. The behavior is the same, but
now it's due to planning, not luck.

svn path=/trunk/; revision=1324
1999-12-14 06:52:09 +00:00
Guy Harris 700c7569e0 Updates from Bert Driehuis.
svn path=/trunk/; revision=1323
1999-12-14 06:21:19 +00:00
Guy Harris a5ce81c250 Don't try to get UCD SNMP to define the CMU SNMP SMI_ values; they may
not have been supported in older versions of CMU SNMP.  Instead, pick
our own names for the values, and define them appropriately for UCD and
CMU SNMP.

svn path=/trunk/; revision=1322
1999-12-14 05:59:16 +00:00
Guy Harris 392e51a42e Include <string.h> to declare "memset()".
svn path=/trunk/; revision=1321
1999-12-14 05:34:30 +00:00
Guy Harris fc104cd938 Minor tweak.
svn path=/trunk/; revision=1320
1999-12-14 02:09:52 +00:00
Guy Harris afe4437cf6 Merge Jerry's version with a version I'd done.
svn path=/trunk/; revision=1319
1999-12-14 01:59:50 +00:00
Nathan Neulinger 2ad53e520e Added support for writing netxray version 1.1 dumps.
It's very basic, and doesn't write out the timestamps currently. It also
only handles WTAP_ENCAP_ETHERNET, although it can probably do the others,
but I don't have a good way to test them. This code has not yet been tested
against a Sniffer Pro, although wiretap can read the files just fine.

svn path=/trunk/; revision=1318
1999-12-14 01:12:59 +00:00
Guy Harris a20a427b9e Merge Jerry's version with a version I'd done.
svn path=/trunk/; revision=1317
1999-12-14 00:27:29 +00:00
Guy Harris 0c4067f31e Provide #defines for the Group/Individual bit in the DSAP, the
Command/Response bit in the SSAP, and the mask that extracts the rest of
the {D,S}SAP.

svn path=/trunk/; revision=1316
1999-12-13 23:39:59 +00:00
Nathan Neulinger 1b4f9ef224 Break out IG and CR bits of SSAP and DSAP
Handle figuring out correct dsap/ssap if the last bit is 0/1

svn path=/trunk/; revision=1315
1999-12-13 21:48:18 +00:00
Gilbert Ramirez ac1b0b43e2 Fixed types. The RPC procedure (hf_rpc_procedure) in the logical proto_tree
(but not in the string attached to the GUI proto_tree, because
proto_tree_add_item_format() was being used) was getting filled in with
the value of "prog" instead of "proc".

svn path=/trunk/; revision=1314
1999-12-13 21:04:50 +00:00
Nathan Neulinger be7d91b51f Added a bunch of NCP function names
Modified ncp2222_find to handle a function code of 0x00.

svn path=/trunk/; revision=1313
1999-12-13 20:20:09 +00:00
Gilbert Ramirez 5bec12502f Check header->msg_type before using it.
svn path=/trunk/; revision=1312
1999-12-13 19:59:29 +00:00
Olivier Abad 065d937572 Document the plugins menu and dialogs
svn path=/trunk/; revision=1311
1999-12-13 12:29:42 +00:00
Jun-ichiro itojun Hagino 08eb7a2b81 fix parser for option part in bgp open message.
struct for bgp open message is not round in size (29 bytes), so we can't
use sizeof for it.

svn path=/trunk/; revision=1310
1999-12-13 09:56:37 +00:00
Gilbert Ramirez 939fa8362e Fix problem with number of format args for "option length too short".
Problem reported by James Coe <jammer@cin.net>

svn path=/trunk/; revision=1309
1999-12-13 05:09:05 +00:00
Gilbert Ramirez 66674a789e Remove the horizontal scroll bar under the hex dump. It did nothing
at all since the GtkText widget does not scroll horizontally (it says
so in the GTK+ docs and in the gtktext.c file in the GTK+ distribution).
Even if the Ethereal window is shrunk horizontally, the text widget will
line wrap (we could turn that off, but it just truncates the line, instead
of making the text widget horizontally-scrollable).

Also, change the packet list scrollbar policy to AUTOMATIC so that scroll
bars only appear when needed. This is how the protocol tree pane has
been configured already.

svn path=/trunk/; revision=1308
1999-12-13 04:20:33 +00:00
Gilbert Ramirez 490fcbb775 One final fix to the 3-pane GUI behavior. Now when the the Ethereal
window is extended veritically, either up or down, the packet list
and hex dump pane sizes stay the same, and the protocol tree pane
is the one that grows. Hurrah! Of course you can still modify the
size of each pane with the little separator between each pane.

svn path=/trunk/; revision=1307
1999-12-13 03:45:33 +00:00
Guy Harris 104e56d68e Set "v120len" regardless of whether "tree" is null or not; we use it
regardless of whether it's null or not.

svn path=/trunk/; revision=1306
1999-12-12 23:08:20 +00:00
Guy Harris e15761f1a5 Put the "." in "V.120".
svn path=/trunk/; revision=1305
1999-12-12 22:53:25 +00:00
Gilbert Ramirez 4a15f6582a Added Bert Driehuis <driehuis@playbeing.org>'s I4B wiretap module
and V.120 decoder.

svn path=/trunk/; revision=1304
1999-12-12 22:40:10 +00:00
Guy Harris bf611b0f7c Add short names (for "editcap" command lines and the like) for the
Kuznetsov "libpcap" format and the early Kuznetsov format Red Hat 6.1
uses.

svn path=/trunk/; revision=1303
1999-12-12 21:34:51 +00:00
Richard Sharpe e6c49cfe4d Another commit from a Qantas Club Lounge ... :-)
Update editcap to print out the type of capture file if -v specified and
add a -h flag.  Also fix a few compiler warnings ...

svn path=/trunk/; revision=1302
1999-12-12 21:04:29 +00:00
Olivier Abad 8b339e902c Copy the pseudo_header from frame_data to the wtap_pkthdr structure before
passing it to wtap_dump()
It allows to save correct "from_dce/from_dte" flags in ngsniffer_dump.

svn path=/trunk/; revision=1301
1999-12-12 13:25:54 +00:00
Olivier Abad 5bc8a989b9 Finished improving display of facilities :
- use a subtree for each facility
- decode the DTE address when appropriate

Address decoding in call setup and clearing packets :
- the A bit is the first bit of the general format identifier
- correct use of this A bit (toa parameter) in x25_ntoa

svn path=/trunk/; revision=1300
1999-12-12 12:59:01 +00:00
Olivier Abad 7aef27dd3c Avoid loading "." and ".." when scanning directories for plugins
svn path=/trunk/; revision=1299
1999-12-12 10:22:41 +00:00
Gilbert Ramirez 1c5adc4b08 Highlight the hex dump at the correct offset for Who utmp Entry
structs.

svn path=/trunk/; revision=1298
1999-12-12 06:59:24 +00:00
Gilbert Ramirez d85f804b4b Add the who protocol (rwho/rwhod/ruptime)
In packet_hex_print(), compute (bstart + blen) only once.

In time_secs_to_str(), return a meaningful string when time == 0, instead
of returing pointer to char buffer with old, inappropriate data in it.

svn path=/trunk/; revision=1297
1999-12-12 05:11:57 +00:00
Guy Harris d12309b4d3 Add a URL for the WCCP 1.0 draft.
svn path=/trunk/; revision=1296
1999-12-12 03:10:14 +00:00
Guy Harris 5a4d9d6d68 WCCP 1.0 dissection, from Jerry Talkington.
svn path=/trunk/; revision=1295
1999-12-12 03:05:57 +00:00
Richard Sharpe 3216e87029 Fixed up the problems with compilation warnings, as per some patched
from Guy, plus a few more of my own.

Also added in basic response decoding where we don't know what it is ...

Got more to do, as well as decoding returned data ... Thinking about that
now, and will have a data-drived approach.

I need some way to specify that an internal routine be called for some types
of data where we know what type it is, in the case of Server Types for
example ...

svn path=/trunk/; revision=1294
1999-12-12 02:19:00 +00:00
Guy Harris 4a08c26dff If we have an SNMP library, use its routines for printing values; that
way, it checks that the type of the variable matches the type it's
claimed to have in the MIB (and indicates if it isn't), it can decode
enumerated types, and it may also use the DISPLAY-HINT string in the
MIB.

Handle unknown types better.

svn path=/trunk/; revision=1293
1999-12-12 01:51:47 +00:00
Guy Harris 626078e808 Put in a private data structure hanging off the "wtap_dumper" structure
the "this is the first frame" flag, and the time stamp of the first
frame, used when writing Sniffer files, so that more than one could be
open at a time (Wiretap doesn't forbid that) and so that they're
initialized when you start writing a capture.

svn path=/trunk/; revision=1292
1999-12-11 10:02:13 +00:00
Olivier Abad e906581356 Correct timestamp calculation in ngsniffer_dump
svn path=/trunk/; revision=1291
1999-12-11 09:22:36 +00:00
Guy Harris 4b41f91139 Fix a couple of typos.
svn path=/trunk/; revision=1290
1999-12-11 06:58:41 +00:00
Guy Harris 4873e0fa4a We no longer use "asn_parse_header()" from the SNMP libraries; we use
"sprint_objid()", however.

svn path=/trunk/; revision=1289
1999-12-11 05:30:31 +00:00
Guy Harris 96a2e32a70 Provide different file types for "modified" and Red Hat 6.1 "libpcap"
files (the former have a different per-packet header, and a different
magic number, from the standard "libpcap"; the latter have the same
per-packet header as "modified" "libpcap" files, but the same magic
number as standard "libpcap" files, sigh).

Support writing "libpcap" captures in all three formats (so that, for
example, people running Ethereal on RH 6.1 can write out captures that
the "tcpdump" that comes with RH 6.1 can read, although that's not the
default format we save in - there's no way to tell whether you're
running on RH 6.1, as far as I know; "uname()" just tells you, on Linux
systems, that the kernel is Linux 2.x, and what "x" is, it doesn't say
what the *rest* of the system is).

Fix the table in "file.c" to use Olivier's code for writing Sniffer
files.

svn path=/trunk/; revision=1288
1999-12-11 00:40:40 +00:00