aboutsummaryrefslogtreecommitdiffstats
path: root/packet-m3ua.c
AgeCommit message (Collapse)AuthorFilesLines
2004-05-24Have two strings in an enum_val_t - one that's a short string that isguy1-6/+6
convenient to put into a command line (no capital letters, no spaces to require quotes), and one that's a detailed description for use in the UI. Allow either of them in the preferences file or "-o" option; use the detailed description in the UI, and also use it when writing the preferences out, so that the preference will be readable by older versions of Ethereal (assuming the preference existed in that version). Update "README.developer" to give more detail about an enum_val_t (and to put the _t in), and to give a more detailed description of the "radio_buttons" argument to "prefs_register_enum_preference()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10982 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-25Fix tags for 07 version.tuexen1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10485 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-23Added support for version 07 of the ID.tuexen1-12/+229
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10456 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-21warning: ISO C does not allow extra ; outside of a functionjmayer1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9387 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-06When registering a field, make sure its ID is -1 or 0 - if it's not,guy1-2/+1
that probably means you've registered two fields with the same field ID variable, which is an error. Fix the bugs doing so found. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8629 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-05Fixed a bug introduced by my last update and reported for packet-mtp3.ctuexen1-12/+12
by Anders Broman. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8394 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-04From Anders Broman: add translation of SI values to strings.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8375 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-04Indicate the version in the protocol column only if multiple versions are ↵tuexen1-2/+12
supported. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8371 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-02From Anders Broman: add a few more user IDs to the M3UA Service Indicator.guy1-1/+12
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8338 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-22- get rid of col_set_fence: it will be called in packet-sctp.c only.tuexen1-11/+4
- replace DATA1 by DATA in packet-m3ua.c (typo) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7529 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-19- add INFO column stuff using fence.tuexen1-82/+58
- change my e-mail address git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7500 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-12From Jeff Morriss: don't put stuff in the Info column if a subdissectorguy1-13/+37
is called, so that we don't get a mix of M3UA and subdissector stuff. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7444 f5534014-38df-0310-8fa8-9805f1628bb7
2003-02-18Fixed a bug in the calculation of number of routing contexts.tuexen1-4/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7166 f5534014-38df-0310-8fa8-9805f1628bb7
2003-01-28Minor corrections and modifications.tuexen1-40/+38
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7022 f5534014-38df-0310-8fa8-9805f1628bb7
2003-01-27Fix a similar problem in the RFC 3332 version of the protocol.guy1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7013 f5534014-38df-0310-8fa8-9805f1628bb7
2003-01-27From Jeff Morriss: dissect parameters regardless of whether a protocolguy1-3/+15
tree is being generated or not, so that subdissectors get called. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7009 f5534014-38df-0310-8fa8-9805f1628bb7
2003-01-22Added support for version 05 of the (expired) ID describing M3UA.tuexen1-1049/+908
Updated to support RFC 3332. Better handling of padding. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6976 f5534014-38df-0310-8fa8-9805f1628bb7
2003-01-14From Christian Falckenberg: beginnings of a MEGACO dissector.guy1-3/+3
Move SCTP payload protocol IDs to a header file, and get the PPIDs from that header file rather than defining them in dissectors running atop SCTP. Use both the old(?) and official PPID for ASAP. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6926 f5534014-38df-0310-8fa8-9805f1628bb7
2002-12-02Don't cast away constness, and fix variable and structure memberguy1-4/+4
qualifiers as necessary to ensure that we don't have to. "strcmp()", "strcasecmp()", and "memcmp()" don't return booleans; don't test their results as if they did. Use "guint8", not "guchar", for a pointer to (one or more) 8-bit bytes. Update Michael Tuexen's e-mail address. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6726 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer1-146/+146
winapi_cleanup tool written by Patrik Stridvall for the wine project. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6117 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hjmayer1-9/+1
equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5932 f5534014-38df-0310-8fa8-9805f1628bb7
2002-07-17From Joerg Mayer:guy1-5/+1
dftest.c: Remove #if-0-ed includes packet-ieee80211.c, packet-wtls.c, packet-afp.c, packet-wsp.c, packet-wtp.c, ethereal_gen.py: Remove redundant include varargs (already in snprintf.h, and required only for snprintf.h) Remove unused include of snprintf.h from files not using "snprintf()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5889 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-01From Joerg Mayer: get rid of an unused argument.guy1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5320 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-28From Michael Tuexen: update to draft-ietf-sigtran-m3ua-12.guy1-138/+139
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5038 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-02Typo fix, from Michael Tuexen.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4843 f5534014-38df-0310-8fa8-9805f1628bb7
2002-02-26From Michael Tuexen: support for another message type.guy1-1/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4810 f5534014-38df-0310-8fa8-9805f1628bb7
2002-02-25Editorial corrections, from Michael Tuexen.guy1-10/+26
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4807 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-31From Michael T�xen: updates to support versions 6 and 10 of the SIGTRANguy1-447/+1350
draft, and to register all protocol fields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4642 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-24Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls inguy1-3/+3
arguments to "proto_tree_add_text()", and to "proto_tree_add_XXX()" calls that add FT_NONE or FT_PROTO items to the protocol tree, with -1. Replace some calls to "tvb_length()" or "tvb_length_remaining()" with calls to "tvb_reported_length()" and "tvb_reported_length_remaining()", as those give the actual length of the data in the packet, not just the data that happened to be captured. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4605 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-21Include files from the "epan" directory and subdirectories thereof withguy1-2/+2
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4586 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"guy1-6/+6
structure to the "packet_info" structure; only stuff that's permanently stored with each frame should be in the "frame_data" structure, and the "column_info" structure is not guaranteed to hold the column values for that frame at all times - it was only in the "frame_data" structure so that it could be passed to dissectors, and, as all dissectors are now passed a pointer to a "packet_info" structure, it could just as well be put in the "packet_info" structure. That saves memory, by shrinking the "frame_data" structure (there's one of those per frame), and also lets us clean up the code a bit. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4370 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-03Make "dissector_add()", "dissector_delete()", and "dissector_change()"guy1-3/+6
take a dissector handle as an argument, rather than a pointer to a dissector function and a protocol ID. Associate dissector handles with dissector table entries. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4308 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-18From Joerg Mayer: explicitly fill in all members of aguy1-21/+21
"header_field_info" structure, including the ones that are later set by the routines to register fields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3561 f5534014-38df-0310-8fa8-9805f1628bb7
2001-05-24MTP3 support, from Michael Tuexen.guy1-13/+20
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3444 f5534014-38df-0310-8fa8-9805f1628bb7
2001-04-23Get rid of unnecessary includes.guy1-3/+1
Fix up Gerald's e-mail address in some files while we're at it, and fix up Michael T�xen's name in one file as well. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3368 f5534014-38df-0310-8fa8-9805f1628bb7
2001-04-20Fix Gerald's e-mail address - and fix it in "README.developer", soguy1-2/+2
people don't blindly insert the old address into new dissectors, which is probably how it got into the dissectors being fixed here. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3348 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-25Remove more "CHECK_DISPLAY_AS_DATA()" calls and "pinfo->current_proto ="guy1-5/+1
statements. Move the setting of the Protocol column in various dissectors before anything is fetched from the packet, and also clear the Info column at that point in those and some other dissectors, so that if an exception is thrown, the columns don't reflect the previous protocol. "Tvbuffify" the Mobile IP dissector (it took old-style arguments, and then converted them into tvbuff arguments, so there wasn't much to do, other than to fix references to "fd" to refer to "pinfo->fd"). In the SCTP dissector, refer to the port type and source and destination ports through "pinfo" rather than through the global "pi", as it's a tvbuffified dissector. In the SMTP and Time Protocol dissectors, use "pinfo->match_port" rather than "TCP_PORT_SMTP" when checking whether the packet is a request or reply, just in case somebody makes a non-standard port be dissected as SMTP or Time. (Also, remove a bogus comment from the Time dissector; it was probably cut-and-pasted from the TFTP dissector.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2938 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-14Updates from Michael Tuexen.guy1-42/+42
XXX - this causes the Info column for M3UA packets to have stuff from SCTP as well as M3UA, but doesn't cause the Protocol column to say "SCTP/M3UA", just "M3UA"; fixing that requires that the M3UA dissector be able to find out whether it's already put "/M3UA" into the Protocol column, but I Have A Cunning Plan to handle that which might also allow display filters containing only protocol names (i.e., filters that care only whether a given packet contains data for a given protocol) to run much faster. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2898 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-13Update from Michael Tuexen.guy1-1/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2895 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-10M3UA (MTP3 User Adaptation layer) support, from Michael Tuexen.guy1-0/+973
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2855 f5534014-38df-0310-8fa8-9805f1628bb7