aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2001-01-09Add an additional "protocol index" argument to "{old_}dissector_add()",Guy Harris125-364/+460
"{old_}heur_dissector_add()", "{old_}conv_dissector_add()", and "register_dissector()", so that an entry in those tables has associated with it the protocol index of the protocol the dissector handles (or -1, if there is no protocol index for it). This is for future use in a number of places. (Arguably, "proto_register_protocol()" should take a dissector pointer as an argument, but 1) it'd have to handle both regular and heuristic dissectors; 2) making it take either a "dissector_t" or a union of that and a "heur_dissector_t" introduces some painful header-file interdependencies so I'm punting on that for now. As with other Ethereal internal APIs, these APIs are subject to change in the future, at least until Ethereal 1.0 comes out....) svn path=/trunk/; revision=2849
2001-01-09Add tables of "conversation" dissectors, which are associated withGuy Harris6-4/+128
particular protocols, and which keep track of all dissectors that could be associated with conversations using those particular protocols - for example, the RTP and RTCP dissectors could be assigned to UDP conversations. This is for future use with UI features allowing the dissector for a given conversation to be set from the UI, to allow 1) conversations between two ports, both of which have dissectors associated with them, that have been given to the wrong dissector to be given to the right dissector; 2) conversations between two ports, neither of which have dissectors associated with them, to be given to a dissector (RTP and RTCP, for example, typically run on random ports, and if you don't have, in a capture, traffic that would say "OK, traffic between these two hosts and ports will be RTP traffic", you may have to tell Ethereal explicitly what protocol the conversation is). svn path=/trunk/; revision=2848
2001-01-09If the target hardware address in an ARP packet is a broadcast address,Guy Harris1-3/+9
don't give that address the host name corresponding to the target IP address. svn path=/trunk/; revision=2847
2001-01-09Don't do the "select()" in the capture codepath on Win32; it's notGuy Harris1-4/+20
necessary, and won't necessarily work. svn path=/trunk/; revision=2846
2001-01-08Code to handle Frame Relay Sniffer captures, from Jeff Foster.Guy Harris5-6/+21
Code to register the Frame Relay dissector to handle Frame Relay captures, from Paul Ionescu. svn path=/trunk/; revision=2845
2001-01-07Clean up white space.Guy Harris1-2/+2
svn path=/trunk/; revision=2844
2001-01-07Fix the Frame Relay dissector to call subdissectors regardless ofGuy Harris1-17/+16
whether a full protocol tree dissection is being done or not. svn path=/trunk/; revision=2843
2001-01-07Frame Relay and Frame-Relay-over-GRE support, from Paul Ionescu.Guy Harris5-105/+274
Fix the GRE dissector to call subdissectors regardless of whether a full protocol tree dissection is being done or not. svn path=/trunk/; revision=2842
2001-01-07Make the three subfields of the "flags" field real bitfields, and letGuy Harris2-56/+44
the protocol tree code do the work of constructing the display for them, rather than doing it by hand. svn path=/trunk/; revision=2841
2001-01-07Update from Paul Ionescu to set the reported length of the tvbuff forGuy Harris1-2/+7
the DEC LanBridge STP packet, so that stuff after the end of the packet gets properly reported as Ethernet trailer data. svn path=/trunk/; revision=2840
2001-01-06Tvbuffify the NTP and time protocol dissectors.Guy Harris3-193/+201
svn path=/trunk/; revision=2839
2001-01-06Tvbuffify the Vines dissector, and add protocols for the VinesGuy Harris3-232/+299
Fragmentation and SPP protocols. Call the Vines dissector from the UDP dissector via a dissector table. svn path=/trunk/; revision=2838
2001-01-06Tvbuffify the "rwho" dissector.Guy Harris1-111/+119
svn path=/trunk/; revision=2837
2001-01-06Tvbuffify the VRRP dissector, and add code to check the checksum.Guy Harris1-79/+94
svn path=/trunk/; revision=2836
2001-01-06Set "pinfo->current_proto".Guy Harris1-1/+3
svn path=/trunk/; revision=2835
2001-01-06Tvbuffify the MPLS dissector.Guy Harris1-31/+34
svn path=/trunk/; revision=2834
2001-01-06Tvbuffify the LPD dissector.Guy Harris1-58/+52
Use "tvb_format_text()" to display the printer and options in a request, so that it doesn't have problems with non-printable characters - or if we incorrectly decide that a packet is a request merely because it happens to have what appears to be a valid request code as the first byte. svn path=/trunk/; revision=2833
2001-01-05Map the old MGCP preference names to the new ones (including a specialGuy Harris1-5/+80
hack to handle the two copies of "mgcp.{tcp,udp}.port" as best we can). svn path=/trunk/; revision=2832
2001-01-05Use "%u", not "%d", to print unsigned quantities.Guy Harris1-16/+13
Show the flags in hex, not decimal. Nobody calls the LanBridge BPDU dissector directly through a handle, so there's no need to register it. svn path=/trunk/; revision=2831
2001-01-05IP Prefix field support in CDP, from Paul Ionescu.Guy Harris2-1/+27
svn path=/trunk/; revision=2830
2001-01-05X.25-over-LLC support, from Paul Ionescu.Guy Harris4-11/+16
svn path=/trunk/; revision=2829
2001-01-05DEC LANBridge Spanning Tree Protocol support, from Paul Ionescu.Guy Harris4-2/+172
Put "packet-lapbether.c" into "Makefile.nmake". svn path=/trunk/; revision=2828
2001-01-05Clear the Info column before fetching anything from the packet, so thatGuy Harris1-1/+3
if we throw an exception, the stuff from the Token-Ring protocol isn't still there. svn path=/trunk/; revision=2827
2001-01-05Clear the Info column before fetching anything from the packet, so thatGuy Harris1-1/+4
if we throw an exception, the stuff from the protocol atop which LLC runs isn't still there. svn path=/trunk/; revision=2826
2001-01-05Set "pinfo->current_proto" once we've decided it's an H1 packet.Guy Harris1-123/+126
Fix the indentation. svn path=/trunk/; revision=2825
2001-01-04Doesn't need #include "dfilter.h"Gilbert Ramirez2-4/+2
svn path=/trunk/; revision=2824
2001-01-04Doesn't need #include "dfilter.h"Gilbert Ramirez1-2/+1
svn path=/trunk/; revision=2823
2001-01-04Make the PPP-over-Ethernet discovery and session protocols registeredGuy Harris1-28/+59
protocols. svn path=/trunk/; revision=2822
2001-01-04Don't define "promisc_mode" if we weren't built with libpcap support.Guy Harris1-1/+3
svn path=/trunk/; revision=2821
2001-01-03- replace x25 with x.25 in all protocol fieldsOlivier Abad1-24/+56
- displays the GFI (the a/q/d bits and modulo are displayed in a subtree of the GFI) - correctly dissect the first bit of the GFI : Address bit in call set-up and clearing packets, Qualifier bit in data packets. svn path=/trunk/; revision=2820
2001-01-03Tvbuffify the BOOTP/DHCP dissector.Guy Harris1-206/+267
svn path=/trunk/; revision=2819
2001-01-03"hf_sna_rh_csi" is now an FT_UINT8 field, so add it withGuy Harris1-2/+2
"proto_tree_add_uint()", not "proto_tree_add_boolean()". svn path=/trunk/; revision=2818
2001-01-03Ensure that all value_string arrays end in {0, NULL}. Dissectors got awayGilbert Ramirez19-72/+139
with not terminating their arrays because they knew the limits of the value used to look up strings in the value_string array, but the dfilter_expr_dlg does not know these limits and must rely on the terminating {0, NULL} record. Also, in SNA fixed a bug in which a field should have been defined as FT_UINT8 but was defined as FT_BOOLEAN. In WTP, fixed a value string which had duplicate keys. svn path=/trunk/; revision=2817
2001-01-03Have the TR MAC and LLC dissectors register themselves, make themGuy Harris12-62/+79
static, and have other dissectors call them through handles. svn path=/trunk/; revision=2816
2001-01-03Register the WSP dissector, make it static, and have the WTP dissectorGuy Harris3-8/+14
call it through a handle. svn path=/trunk/; revision=2815
2001-01-03Make the Zebra dissector, and a routine it uses, static, as they're notGuy Harris1-3/+3
called directly from outside "packet-zebra.c". svn path=/trunk/; revision=2814
2001-01-03Update the README.developer file to reflect the recent changes toGuy Harris1-17/+18
"proto_register_protocol()" and the addition of "prefs_register_module()". svn path=/trunk/; revision=2813
2001-01-03Add a new "prefs_register_protocol()" routine, which is likeGuy Harris16-44/+61
"prefs_register_module()" except that it takes a protocol index as returned by "proto_register_protocol()" as its first argument, rather than taking two character strings as arguments as its first two arguments, and uses the protocol's abbreviation as the name to use for preferences in the preferences file and the "-o" flag and uses the protocol's short name as the name to use in the tabs in the "Edit->Preferences" window. svn path=/trunk/; revision=2812
2001-01-03Have "proto_register_protocol()" build a list of data structures forGuy Harris1-2/+2
protocols, in addition to adding structures to the list of filterable fields. Give it an extra argument that specifies a "short name" for the protocol, for use in such places as pinfo->current_proto; the dialog box for constructing filters; the preferences tab for the protocol; and so on (although we're not yet using it in all those places). Make the preference name that appears in the preferences file and the command line for the DIAMETER protocol "diameter", not "Diameter"; the convention is that the name in question be all-lower-case. Make some routines and variables that aren't exported static. Update a comment in the ICP dissector to make it clear that the dissector won't see fragments other than the first fragment of a fragmented datagram. svn path=/trunk/; revision=2811
2001-01-03Have "proto_register_protocol()" build a list of data structures forGuy Harris148-469/+700
protocols, in addition to adding structures to the list of filterable fields. Give it an extra argument that specifies a "short name" for the protocol, for use in such places as pinfo->current_proto; the dialog box for constructing filters; the preferences tab for the protocol; and so on (although we're not yet using it in all those places). Make the preference name that appears in the preferences file and the command line for the DIAMETER protocol "diameter", not "Diameter"; the convention is that the name in question be all-lower-case. Make some routines and variables that aren't exported static. Update a comment in the ICP dissector to make it clear that the dissector won't see fragments other than the first fragment of a fragmented datagram. svn path=/trunk/; revision=2810
2001-01-03Fix a damn stupid mistake that stopped us seeing all the bits in the flags ↵Richard Sharpe1-2/+2
on a NetServerEnum2 request. svn path=/trunk/; revision=2809
2001-01-03Support for HTTP methods added by GENA (the uPnP protocol), and for theGuy Harris3-4/+93
HTTP-based SSDP protocol, from David Hampton. svn path=/trunk/; revision=2808
2001-01-02Base the decision of whether selecting an entry in the value list setsGuy Harris1-9/+6
the value entry on the type of the field, not on whether the value entry is visible; the value entry is hidden, in "field_select_row_cb()", after "build_boolean_values()" is called, and building the list in "build_boolean_values()" will cause an entry in that list to be selected, and "value_list_sel_cb()" will be called as a result, so it can't correctly base its decision on whether to set the value entry on whether the entry is visible, as it's not yet been made invisible. Fix a comment. svn path=/trunk/; revision=2807
2001-01-02Don't show "Text" as one of the available fields.Guy Harris1-1/+3
svn path=/trunk/; revision=2806
2001-01-02Add a dialog box for constructing expressions that test a field in theGuy Harris13-273/+1631
display tree, based on Jeff Foster's dialog box for selecting fields. Make the dialog box for browsing filters into a dialog box for constructing filters; make the "Apply" button and the "OK" button apply the filter in the text entry box in the dialog, not the currently selected filter (selecting a filter puts it in that text entry box, but the user may edit it afterwards, or may use the aforementioned dialog box to construct a filter not in the list). Get rid of extra declarations of "m_r_font" and "m_b_font" in "proto_draw.c"; they're declared in "gtk/gtkglobals.h", which it includes. svn path=/trunk/; revision=2805
2001-01-01A small fix to ensure that all servers/workgroups show up ... Last oneRichard Sharpe1-2/+2
was not being picked up ... Will have to add proper state keeping code soon ... svn path=/trunk/; revision=2804
2000-12-30understand TCP MD5 signature. Greg Hankins <gregh@twoguys.org>Jun-ichiro itojun Hagino1-1/+11
svn path=/trunk/; revision=2803
2000-12-29Tvbuffify the MAPI dissector.Guy Harris1-19/+22
svn path=/trunk/; revision=2802
2000-12-29Fix up some calls in which I didn't replace "NullTVB" with "tvb".Guy Harris1-6/+6
svn path=/trunk/; revision=2801
2000-12-29If we get an exception when dissecting a packet, append "[Short Frame]"Guy Harris5-11/+37
or "[Malformed Frame]" to the Info column. Make some dissectors set the Protocol column and clear the Info column before fetching anything from the tvbuff they were handed, so that if the frame is short or malformed, it'll be marked as being the right top-level protocol, and the Info column won't have cruft left over from the previous protocol. svn path=/trunk/; revision=2800