aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Rename "asn1_octet_string_value_decode()" toGuy Harris2000-12-247-430/+706
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "asn1_string_value_decode()", as it can be used for various character string types as well. Turn "asn1_octet_string_decode()" into "asn1_string_decode()", which takes an additional argument giving the tag expected for the string in question, and make "asn1_octet_string_decode()" a wrapper around it. Clean up the ASN.1 dissection in the Kerberos dissector, making more use of the code in "asn1.c", wrapping more operations up in macros, and doing some more type checking. Use "REP" rather than "RESP" in names and strings; "REP" is what the Kerberos spec uses. Make the routines in the Kerberos dissector not used outside that dissector static. Fix some problems with the dissection of strings in the Kerberos dissector (it was extracting the data from the wrong place in the packet). In Kerberos V5, the "kvno" item in the EncryptedData type is optional; treat it as such. Treat integers as unsigned in the Kerberos dissector. svn path=/trunk/; revision=2777
* Report the holding time of a CLNP packet, in seconds, as seconds plusGuy Harris2000-12-231-5/+14
| | | | | | | | | fractions of a second (the resolution is 1/2 second). In the bitfield breakdown of the flags/type field of a CLNP PDU, report the PDU type as a name rather than as an abbreviation. svn path=/trunk/; revision=2776
* Show the type/flags byte of a CLNP PDU with a subtree dissecting theGuy Harris2000-12-231-2/+21
| | | | | | bits. svn path=/trunk/; revision=2775
* On Linux, try to open the "any" device and, if we can open it, add it toGuy Harris2000-12-231-1/+18
| | | | | | the end of the list of interfaces on which you can capture. svn path=/trunk/; revision=2774
* Dissect the payload of a CLNP ER packet as a CLNP packet, so you knowGuy Harris2000-12-231-4/+22
| | | | | | what the offending packet was. svn path=/trunk/; revision=2773
* Add support for the DLT_LINUX_SLL capture type in the current CVSGuy Harris2000-12-237-9/+341
| | | | | | | | | | | | | | version of libpcap; that's used on Linux for captures on the "any" device (which captures from all interfaces simultaneously) and for captures on devices whose link-layer type libpcap doesn't (yet) support natively. The spanning tree code, when checking for GV{M,R,...}P packets, must first check whether the link-layer destination address is, in fact, an Ethernet-style address; on Linux cooked captures, there *is* no destination address, so it's of type AT_NONE, not AT_ETHER. svn path=/trunk/; revision=2772
* fix '#endif FRED' to '#endif /* FRED */'Nathan Neulinger2000-12-221-2/+2
| | | | svn path=/trunk/; revision=2771
* added a couple of msg types - in particular - ERROR responseNathan Neulinger2000-12-221-2/+14
| | | | svn path=/trunk/; revision=2770
* added tethereal_static targetNathan Neulinger2000-12-221-2/+17
| | | | svn path=/trunk/; revision=2769
* Enable FT_BYTES dfiltering, from Ed Warnicke.Gilbert Ramirez2000-12-226-28/+80
| | | | svn path=/trunk/; revision=2768
* Bug fixes from Ed Warnicke.Gilbert Ramirez2000-12-201-10/+40
| | | | svn path=/trunk/; revision=2767
* Call CHECK_DISPLAY_AS_DATA() for proto_ftp_data as well.Gilbert Ramirez2000-12-191-1/+3
| | | | svn path=/trunk/; revision=2766
* X.25 over TCP support, from Paul Ionescu.Guy Harris2000-12-174-3/+104
| | | | | | Also, update his e-mail address. svn path=/trunk/; revision=2765
* Patches to prevent problems under Windows when time formats are negative.Richard Sharpe2000-12-171-8/+15
| | | | | | | | Make sure that if _gtime is null, a bad format message returned. Also noticed that I am going to have to do something about Unicode strings soon and the SMBopenX dissect is slightly wrong ... Oh well, it is the Xmas break soon :-) No rest for the Wicca'd (please don't interpret that as a statement of my religious affiliation, it is just a cute saying :-) svn path=/trunk/; revision=2764
* Match Selected works better with FT_STRING variables.Gilbert Ramirez2000-12-151-6/+11
| | | | | | From Ed Warnicke <hagbard@physics.rutgers.edu> svn path=/trunk/; revision=2763
* Add the relative time to the frame tree, at the request of Manfred Young.Gerald Combs2000-12-151-1/+13
| | | | svn path=/trunk/; revision=2762
* Check the checksum on GRE packets, if possible and if the ChecksumGuy Harris2000-12-151-7/+32
| | | | | | Present flag is set. svn path=/trunk/; revision=2761
* Check the checksum on OSPF packets, if possible.Guy Harris2000-12-141-3/+44
| | | | svn path=/trunk/; revision=2760
* Check the checksum on ICMPv6 packets, if possible.Guy Harris2000-12-141-5/+45
| | | | svn path=/trunk/; revision=2759
* Fix a typo in a comment.Guy Harris2000-12-141-2/+2
| | | | svn path=/trunk/; revision=2758
* Set the "fragmented" field of the "packet_info" structure based onGuy Harris2000-12-141-1/+5
| | | | | | whether the packet has any fragmentation headers or not. svn path=/trunk/; revision=2757
* Include winsock.h on windows so that htons will be defined.Gilbert Ramirez2000-12-141-1/+5
| | | | svn path=/trunk/; revision=2756
* Mobile IPv6 support, from Martti Kuparinen.Guy Harris2000-12-144-2/+110
| | | | svn path=/trunk/; revision=2755
* PPP patches from Burke Lau to:Guy Harris2000-12-146-4/+249
| | | | | | | | | | add FCS checking; support Cisco HDLC format in the PPP dissector; handle MPLS-over-PPP. svn path=/trunk/; revision=2754
* Added support for Router-Alert IP option (RFC2113)Ashok Narayanan2000-12-131-2/+25
| | | | svn path=/trunk/; revision=2753
* Don't check the checksum of ICMP datagrams that are fragmentedGuy Harris2000-12-131-5/+4
| | | | | | (unlikely, perhaps even forbidden, but not impossible). svn path=/trunk/; revision=2752
* Add code to check the checksums of TCP segments and UDP datagrams;Guy Harris2000-12-138-59/+373
| | | | | | | | | | | | | | | | | | | replace the existing checksummer with a modified version of the BSD checksumming code. Add a flag to the "packet_info" structure to indicate that a packet is the first fragment of a fragmented datagram, so that the checksummers won't try to checksum those. (It doesn't seem to add a lot of CPU overhead, so we don't introduce a flag to disable it, yet. Further checks may be necessary to see whether the overhead is just swamped by other overheads when scanning through a capture dissecting all frames, or if it truly is negligible.) Make the Boolean preference option controlling whether to make the top-level protocol tree item for TCP display a packet summary static to the TCP dissector (it doesn't need to be accessible outside the TCP dissector). svn path=/trunk/; revision=2751
* print message ID in isakmp headerJun-ichiro itojun Hagino2000-12-121-2/+4
| | | | svn path=/trunk/; revision=2750
* remove incorrect bound check. the check can fail on legal packet, at theJun-ichiro itojun Hagino2000-12-121-1/+3
| | | | | | very end of the packet. may need to revisit. svn path=/trunk/; revision=2749
* Fix for pppdump buffer-overflow check.Gilbert Ramirez2000-12-092-5/+16
| | | | | | From Daniel Thompson <daniel.thompson@st.com> svn path=/trunk/; revision=2748
* When printing an address mask in hex, zero-pad it, don't blank-pad it.Guy Harris2000-12-081-2/+2
| | | | svn path=/trunk/; revision=2747
* Break out the bits in the NBIPX "connection control" field.Guy Harris2000-12-061-3/+24
| | | | svn path=/trunk/; revision=2746
* Fix egregious error with AF_ types. I relied on a Linux header file ratherRichard Sharpe2000-12-041-7/+22
| | | | | | than checking RFC1700. svn path=/trunk/; revision=2745
* Add a "col_clear()" routine, to clear a column; it appears (and itGuy Harris2000-12-046-84/+109
| | | | | | | | | | | | | | | | | | | | | | doesn't just seem to be a profiling artifact) that, at least on FreeBSD 3.4, it's significantly more efficient to clear out a column by stuffing a '\0' into the first byte of the column data than to do so by copying a null string (I guess when copying one byte, the fixed overhead of the procedure call and of "strcpy()" is significant). Have the TCP dissector set the Protocol column, and clear the Info column, before doing anything that might cause an exception to be thrown, so that if we *do* get an exception thrown, the frame at least shows up as TCP. Instead of, in the TCP dissector, constructing a string and then stuffing it into the Info column, just append to the Info column, which avoids one string copy. Pass a "frame_data" pointer to dissectors for TCP and IP (and PPP) options, so they can use it to append to the Info column. svn path=/trunk/; revision=2744
* Don't loop infinitely if we see a Host Address or unknown ForwardingGuy Harris2000-12-041-1/+16
| | | | | | | | | Equivalence Class. Set "pinfo->current_proto", so that if we run past the end of the data the problem is noted as being with LDP. svn path=/trunk/; revision=2743
* Update a comment.Guy Harris2000-12-031-3/+3
| | | | svn path=/trunk/; revision=2742
* Declare "proto_malformed" in "packet-frame.h", as "packet-frame.c"Guy Harris2000-12-032-6/+6
| | | | | | | | | exports it. Make the pointer that points to the GMemChunk for per-frame data static to "epan/packet.c", as it's not used outside "epan/packet.c". svn path=/trunk/; revision=2741
* Nothing in "packet.c" uses the global "cfile", so there's no need toGuy Harris2000-12-031-4/+1
| | | | | | declare it there. svn path=/trunk/; revision=2740
* Pull the code to set the fields in the "cfile.cinfo" structure into aGuy Harris2000-12-034-18/+24
| | | | | | | common routine to initialize a "column_info()" structure, shared by Ethereal and Tethereal. svn path=/trunk/; revision=2739
* Put the "-s" flag into the usage message for editcap.Guy Harris2000-12-031-3/+5
| | | | svn path=/trunk/; revision=2738
* "dissect_ppp()" isn't called directly from outside of "packet-ppp.c", soGuy Harris2000-12-031-2/+2
| | | | | | make it static. svn path=/trunk/; revision=2737
* Add the standard "CHECK_DISPLAY_AS_DATA()" call.Guy Harris2000-12-031-1/+4
| | | | svn path=/trunk/; revision=2736
* Register "dissect_nbipx()", and have the IPX dissector look up itsGuy Harris2000-12-034-41/+15
| | | | | | | | | | | handle and call it through the handle. Make it static; this renders "packet-nbipx.h" unnecessary. Get rid of the "tvb_compat()" call in the IPX dissector - it calls all dissectors through handles or lookup tables, and thus any backwards-compatibility stuff is done by the code in libethereal. svn path=/trunk/; revision=2735
* Stealing time again to compulsively code this beast.Richard Sharpe2000-12-031-2/+107
| | | | | | Still more TLVs to code ... svn path=/trunk/; revision=2734
* Dissect Common Hello Params TLV ...Richard Sharpe2000-12-021-10/+82
| | | | | | Still more work to do though ... svn path=/trunk/; revision=2733
* Add the relevant "CHECK_DISPLAY_AS_DATA()" call.Guy Harris2000-12-021-1/+3
| | | | svn path=/trunk/; revision=2732
* The second argument to "proto_register_protocol()" is a name to be usedGuy Harris2000-12-021-2/+2
| | | | | | in filters, and should be all-lower-case. svn path=/trunk/; revision=2731
* Some tvbuffified dissectors weren't setting "pinfo->current_proto", soGuy Harris2000-12-029-10/+28
| | | | | | | | | that if they threw an exception, the wrong protocol would be blamed. Add the missing assignments. Clean up the extraction of the null-encapsulation header. svn path=/trunk/; revision=2730
* Clean up the handling of MIME headers.Guy Harris2000-12-021-39/+195
| | | | | | | | | | | Handle the Content-Length: MIME header, so that, if there's a Content-Length: header, we only process as RTSP payload the amount of data specified by that header. Handle frames with more than one RTSP message in them (the previous change allows us to do so). svn path=/trunk/; revision=2729
* Comment out some unused variables.Gilbert Ramirez2000-12-011-4/+4
| | | | svn path=/trunk/; revision=2728