aboutsummaryrefslogtreecommitdiffstats
path: root/epan
AgeCommit message (Collapse)AuthorFilesLines
2014-04-09Don't use tvb_get_nstringz0(), use tvb_get_string_enc().Guy Harris6-24/+16
Change-Id: I8e654fa857fca6713198e3d20f2a14a0a444e935 Reviewed-on: https://code.wireshark.org/review/1037 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-09Update some Kafka API constants per lastest specEvan Huus1-2/+2
Change-Id: Icef981f50e81e5059916e3bde5fa8a1e1fcd92ae Reviewed-on: https://code.wireshark.org/review/1033 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-04-09Sadly, packet-dcerpc-mapi.c is not yet free of warnings.Guy Harris2-2/+2
Change-Id: Ic208c89a915fc34d0f42ce788a60aa15029d105b Reviewed-on: https://code.wireshark.org/review/1036 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-09OK, that might mean packet-dcerpc-mapi.c now has no warnings.Guy Harris2-2/+2
Change-Id: I22688f0a9b6c04b1e0e9f16c92e7c0713610854c Reviewed-on: https://code.wireshark.org/review/1035 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-09Fix some C++ warnings about implicit casts.Guy Harris3-4/+4
Change-Id: I19730e723700f0cc7dcc7ba0db2689f076c7bb5b Reviewed-on: https://code.wireshark.org/review/1034 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-08Get the UDP protocol number from a Wireshark header.Guy Harris1-6/+2
We have epan/ipproto.h to define various IP protocol numbers; use that. Change-Id: I1ec72028182125f7e11dc159791753ee26d35f12 Reviewed-on: https://code.wireshark.org/review/1027 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-08Make sure IPv4 address structures really have 4 bytes of data.Guy Harris1-1/+2
Change-Id: If89827677f7503fc67ba9a025f28447a68a98f07 Reviewed-on: https://code.wireshark.org/review/1025 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-08Don't assume the data pointed to by an address structure is aligned.Guy Harris2-22/+12
And don't assume you can dereference the pointer nonetheless; that doesn't work on SPARC, for example - you get an unaligned-access trap. Instead, use pntoh32() to fetch IPv4 address values from the address structures. While we're at it, just use guint32 for those addresses; we don't need in_addr_t. Change-Id: I84e6c653fe33b1bc6e67d9097ce423b82f1eb0c8 Reviewed-on: https://code.wireshark.org/review/1024 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-08Squelch another warning; fix a place assuming 8-bit device IDs.Guy Harris1-2/+2
Change-Id: I0b2d30a7724f9493ef0388232f6c13751e707255 Reviewed-on: https://code.wireshark.org/review/1023 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-08Get rid of some unused functions.Guy Harris1-90/+64
Change-Id: I3b1529826c04334d2df8e3f80a69e8b51651b9cf Reviewed-on: https://code.wireshark.org/review/1022 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-08USB device addresses need to be 16-bit.Guy Harris2-2/+2
They are 16-bit in the Windows header; make them that way everywhere, so that we don't get "shortening 16 bits to 8 bits" warnings. Change-Id: I18f4c4254f224d76a90f3e87bc2f28cba011b5a3 Reviewed-on: https://code.wireshark.org/review/1021 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-08Add application/vnd.oma.xdm-apd+xmlAndersBroman1-0/+1
Change-Id: I7d5c3757d5c66da4b1ce91026bdacd9631eda78c Reviewed-on: https://code.wireshark.org/review/1020 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-08Update to V11.6.0AndersBroman1-145/+1268
Change-Id: I91def9d33901f82b9516a0be464ba9e609da0007 Reviewed-on: https://code.wireshark.org/review/1019 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-08reformat the code for bulk, interrupt urbsMartin Kaiser1-14/+12
Change-Id: Ib2374df62daf0fc26fb02202d3a64e59b902a1e8 Reviewed-on: https://code.wireshark.org/review/1016 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2014-04-08move the assignments for is_request, endpoint behind the if statementsMartin Kaiser1-4/+3
Change-Id: Id3938253bbc63cc27823afa326b1997182e3943d Reviewed-on: https://code.wireshark.org/review/1015 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2014-04-08get rid of src_endpoint, dst_endpointMartin Kaiser1-7/+6
Change-Id: I0d12586afb3723a0da9d24ab2a4b7aa2426b5512 Reviewed-on: https://code.wireshark.org/review/1014 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2014-04-08get rid of tmp_addressMartin Kaiser1-9/+6
Change-Id: I67b83c07c591ef926e5eee94a5526479453d6955 Reviewed-on: https://code.wireshark.org/review/1013 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2014-04-08remove another two NULL checksMartin Kaiser1-16/+9
Change-Id: I091f35ecca8c1418e86ac41018beca705bb1fcd6 Reviewed-on: https://code.wireshark.org/review/1012 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2014-04-08reformat the nested switch-case partMartin Kaiser1-40/+39
Change-Id: Idd98825cbbc6bcc27823afac26b1997182e994cd Reviewed-on: https://code.wireshark.org/review/1011 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2014-04-08Fix a typo, missing ","AndersBroman1-1/+1
Change-Id: I848cf4c63f9b4c7daf6e63f2e60cd1d5aded7b82 Reviewed-on: https://code.wireshark.org/review/1010 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-08Remove some variant of tfs_set_notset...Alexis La Goutte1-55/+13
Change-Id: Ida21963cd68f8fc7387cd2ca37d9436f98318d40 Reviewed-on: https://code.wireshark.org/review/1004 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-04-08Fixes for Windows build post change 1006Graham Bloice2-0/+4
Windows still needs the definition of in_addr_t Change-Id: I43c417de8e8199cfa58b9d494be5e828f959f1a9 Reviewed-on: https://code.wireshark.org/review/1009 Reviewed-by: Graham Bloice <graham.bloice@trihedral.com> Tested-by: Graham Bloice <graham.bloice@trihedral.com>
2014-04-08Fix Hello options FlagsAlexis La Goutte1-19/+9
* Remove flag I and F (from old draft of draft-ietf-ospf-manet-or) * Add flag AT (Authentication) from RFC6506 (RFC7166) Closed-bug: 9941 Change-Id: If6e9c2aa3d2e437ac499253a3061579f344fe607 Reviewed-on: https://code.wireshark.org/review/1003 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-08Make filterable OSPF Hello PacketAlexis La Goutte1-38/+55
Change-Id: Idc7e84fe9f00c30ad6edebcdd11c72d3a7fb77e7 Reviewed-on: https://code.wireshark.org/review/1005 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-08On UN*X, <arpa/inet.h> suffices for struct in_addr and in_addr_t.Guy Harris6-29/+8
So don't pull in <netinet/in.h>. Also, avoid <sys/types.h> in packet-dcom.c. While we're at it, do *not* assume that pinfo->src or pinfo->dst are IPv4 addresses. Change-Id: I5fc8e859780a8d863aaf6e90a21a7039cabae0e6 Reviewed-on: https://code.wireshark.org/review/1006 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-08Fix warning found by -Wunused-const-variable (Clang 3.5)Alexis La Goutte2-0/+4
Change-Id: I4506be6ae8deda5e8d1e038b089620a15b650b03 Reviewed-on: https://code.wireshark.org/review/1000 Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-08Don't pretend that sizeof(guintN) will give us more robust values.Guy Harris1-15/+15
What matter in these cases is the number of bytes on the wire; either sizeof(guint8) = 1, sizeof(guint16) = 2, and sizeof(guint32) = 4, in which case just using 1, 2, and 4 avoids "64-bit to 32-bit conversion" warnings on LP64 and LLP64 environments, or they're not equal, in which case using 1, 2, and 4 rather than the sizeof()s is correct. Change-Id: I4f15c5fae51958c1aff17ff819a9878fa6bd1f54 Reviewed-on: https://code.wireshark.org/review/999 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-08Make sure packet-lbttcp.h ends up in the release tarball.Guy Harris1-0/+1
Change-Id: I9e0eec78bd2020040eb8d5fe5e527fb2a6fc6f9b Reviewed-on: https://code.wireshark.org/review/998 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-08ASTERIX - added dissector for category 023.Marko Hrastovec1-4/+297
Sample file with traffic is the same as for CAT021 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9953). Apply filter "asterix.category == 23" to see only CAT023 packets. A small change in actual dissecting code was also needed because of strange item I023/101. The first FX bit is in the second byte and then grows only for a byte. Change-Id: I3f80e6e46b642efc6f2e19e6f931cdef1c39495a Reviewed-on: https://code.wireshark.org/review/993 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-04-07Initial checkin of LBM aka 29West dissectors. See Bug 9718.Michael Mann14-3/+28802
Change-Id: If8fcfe1971c8863f370e440f64c36eb7566f6852 Reviewed-on: https://code.wireshark.org/review/113 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-04-07Absolute and relative OIDs have different FT_ values.Guy Harris1-1/+5
This squelches some run-time dissector asserts. Change-Id: I0ce33c4eb6e9c3bd371e47363a981e9a7a0dc789 Reviewed-on: https://code.wireshark.org/review/997 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-07The encoding of a string is *not* part of its type.Guy Harris1-1/+0
So get rid of the commented-out FT_UCS2_LE; that would be handled as an FT_STRING, FT_UINT_STRING, or FT_STRINGZ with an encoding of ENC_UCS_2|ENC_LITTLE_ENDIAN. Change-Id: I828fc1ed49843a503ec70e6adaf6dadd256df407 Reviewed-on: https://code.wireshark.org/review/996 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-07Sort the values in value_strings that we'll treat as extended.Guy Harris1-92/+93
This squelches a run-time warning. Change-Id: I5b147530b7f9255c3564fe24b56e0ea3eab45852 Reviewed-on: https://code.wireshark.org/review/995 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-07Handle string types with somewhat appropriate encodings.Guy Harris2-15/+83
For various string types defined in X.680, use the appropriate encoding, or ENC_ASCII|ENC_NA in some cases where we don't have an appropriate encoding yet. This most significantly fixes the handling of BMPString and UniversalString, which are supersets of ASCII (Unicode Basic Multilingual Plane and Unicode, respectively), but don't encode ASCII characters as single octets. It also fixes UTF8String to, well, properly recognize UTF-8. This also lets us get rid of the special handling of SyntaxBMPString in X.509sat (and, in fact, *requires* us to get rid of it, as, otherwise, the string value appears twice). Change-Id: I325c4e71a6110278eb23b86e0d986e6439cfc328 Reviewed-on: https://code.wireshark.org/review/994 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-07Add a Qt I/O Graph dialog.Gerald Combs2-1/+9
For each graph you can set: - Its visibility - A name - A display filter - Color, from a fixed list - Plot style: Line, Impulse, Bar, Stacked Bar, Dot, Square, Diamond - Basic Y Axes (packets/s, bytes/s, bits/s) - Computed Y Axes (SUM, MIN, AVG, MAX) - Smoothing You can pan and zoom using the mouse and keyboard. Clicking on a graph selects the last packet for that interval. If all graphs have the same Y axis a single label is shown, otherwise a legend is shown. The time scale (X axis) can be toggled between relative seconds and the time of day. Graphs can be saved as PDF, PNG, BMP, and JPEG. Settings are "sticky" via the io_graphs UAT. To do: - Minimize graph drawing delays. - Figure out why smoothing differs from GTK+ - Everything else at the top of io_graph_dialog.cpp - Fix empty resets. A fair amount of code was copied from TCPStreamDialog. We might want to subclass QCustomPlot and place the shared code there. Move common syntax checking to SyntaxLineEdit. Move some common code from ui/gtk/io_stat.c to ui/io_graph_item.[ch] and use it in both GTK+ and Qt. Make the io_graph_item_t array allocation in io_stat.c static. The behavior should be identical and this gives us additional compile-time checks. Change-Id: I9a3d544469b7048f0761fdbf7bcf20f44ae76577 Reviewed-on: https://code.wireshark.org/review/435 Reviewed-by: Gerald Combs <gerald@wireshark.org> Tested-by: Gerald Combs <gerald@wireshark.org>
2014-04-07Fix Bug 9958: 'SDP displays double spaces between payload formats as a 0 ↵Hadriel Kaplan1-98/+162
payload format' Given an SDP m= line such as this: m=audio 29156 RTP/AVP 18 0 SDP will show a media format of G.729 (the 18) and then two G.711 entries: one for the extra space between the 18 and 0, and one format for the 0. The latter is correct, but the extra space one isn't. Technically such an m= line is malformed, since only one space is allowed between payload formats; but it's definitely not a format of 0. A similar thing happens in many parts of SDP dissection code. It needs to issue an expert error and handle it gracefully. Change-Id: I1f1500489a13a55e03fc8ea14b37d99a019fc449 Reviewed-on: https://code.wireshark.org/review/989 Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-07Tweak the Diameter heuristics a bit more.Jeff Morriss1-5/+14
Increase the max Diameter message size to 65534 and reject messages whose flags have both the E- and R-bits set. Change-Id: Ib11701a47d23ff042a346d59c56f9f0f4410e6b7 Reviewed-on: https://code.wireshark.org/review/990 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-07Add WS_DLL_PUBLIC for p_remove_proto_data and tvb_child_uncompres functionAlexis La Goutte2-2/+2
Change-Id: If043683f366fedd849688ca3c512707954221a3b Reviewed-on: https://code.wireshark.org/review/984 Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-06Tweak ZigBee GreenPower heuristic to more closely match ZigBee NWK ↵Michael Mann1-8/+8
heuristic. Bug 9956 Change-Id: I2c4d26ee27684d1f18c39add249b9cd116cf6f71 Reviewed-on: https://code.wireshark.org/review/985 Reviewed-by: Michael Mann <mmann78@netscape.net> Tested-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-04-06Get rid of an extra blank line.Guy Harris1-1/+0
Change-Id: I119bbc0c4979a938e4d4633e6acbf46d265b8398 Reviewed-on: https://code.wireshark.org/review/988 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-06Move the status dissecting code to the AFP dissector.Guy Harris3-811/+521
The ASP and DSI dissectors had almost-identical dissection of the ASP and DSI "status" responses. What's being dissected is defined by the AFP specification (and might be different for protocols *other* than AFP running atop AFP or DSI), so move that dissection to the AFP dissector. Note that, at least for AFP-over-DSI, the spec isn't being followed in at least one capture. Change-Id: Idb1013483f3a3bdf2b7eb0618e48fc178a338642 Reviewed-on: https://code.wireshark.org/review/987 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-06Fix indent (use 2 spaces) and add modelinse info for frame_data.hAlexis La Goutte2-6/+19
Change-Id: Ib9eced1b652345cd40edb96ddde092f41a8f669c Reviewed-on: https://code.wireshark.org/review/986 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-04-06Add a couple more in_error_pkt checks.Jeff Morriss1-2/+6
Don't attempt reassembly and squash an expert info when we're in an error packet. Change-Id: I7d19e4ab7add78829bf1e28ad92dce3a7431c37d Reviewed-on: https://code.wireshark.org/review/964 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com> Tested-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2014-04-06IANA assigned port number 6653 to OpenFlow. However, applicationsFrancesco Fondelli1-11/+43
(e.g. opendaylight, nox, openvswitch, etc) still use legacy port numbers. The most common are 6633 and 6634. This patch adds a simple heuristic logic and uses the current uint preference as additional input. In most cases no user intervention is needed and OpenFlow is automatically detected/dissected. Change-Id: Iebf09b7b870efe9d52421b9acc238208d25d4565 Signed-off-by: Francesco Fondelli <francesco.fondelli@gmail.com> Reviewed-on: https://code.wireshark.org/review/921 Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-04-06[Automatic manuf, services and enterprise-numbers update for 2014-04-06]Gerald Combs1-10/+162
Change-Id: Ifebae1d444037a1432d62d710c42c1da9dd0ed58 Reviewed-on: https://code.wireshark.org/review/979 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-04-06remove unnecessary NULL checksMartin Kaiser1-96/+63
Change-Id: I5792fe99f0c75dfa0a9c5e20c4784e2e8a9c00f0 Reviewed-on: https://code.wireshark.org/review/983 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2014-04-06Apply found fix-encoding-args.pl errors in the dissector directory.Michael Mann61-309/+311
I coincidentally found a few files with errors, so I thought it might be time to run it on the whole directory again. Change-Id: Ia32e54b3b1b94e5a418ed758ea79807c8bc7e798 Reviewed-on: https://code.wireshark.org/review/978 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-04-06make sure that we always finalize the composite setup_tvbMartin Kaiser1-9/+13
this should contribute to fix bug 9949 Change-Id: I5235a14b5603ac22c41dd38fb405409c066c9444 Reviewed-on: https://code.wireshark.org/review/952 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2014-04-06Bugfix AFP dissection within MDSSRV. Part of bug 9950.Michael Mann2-2/+2
Change-Id: Ibe2aa48284fe7a507133f5b70a22110bb3bb56cb Reviewed-on: https://code.wireshark.org/review/973 Reviewed-by: Ralph Böhme <rb@sernet.de> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-04-06Partly revert fdeed480bf89a1f43f7b3d4be67fa0e4333f7120Pascal Quantin8-22/+26
wmem_packet_scope() cannot be used outside of a packet treatment Change-Id: I6e545bbb51f325b366288f17358f9d2347a7d7c4 Reviewed-on: https://code.wireshark.org/review/977 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>