aboutsummaryrefslogtreecommitdiffstats
path: root/packet-q931.c
AgeCommit message (Collapse)AuthorFilesLines
2004-04-17Neaten up the display of the top-level protocol tree item for a numberguy1-2/+2
IE. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10625 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-25From Tomas Kukosa: put the number string for a number IE into theguy1-1/+3
top-level item for the IE tree. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10489 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-18From Tomas Kukosa:guy1-16/+34
improve the Info column text for reassembled messages; register subdissectors for dissecting Q.931 IEs and make the ISUP dissector call the codeset 0 IE subdissector through a handle. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10400 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-06From Anders Broman:guy1-22/+50
use the packet-e164.c stuff to analyze E.164 numbers; add some more filterable fields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10330 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-21Fix a typo.guy1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10156 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-20Squelch some compiler warnings.guy1-34/+25
Format the definitions of the segment-reassembly fields the same way the other field definitions are formatted. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10142 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-20From Tomas Kukosa: reassemble segmented Q.931 messages.guy1-4/+160
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10124 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-18From Tomas Kukosa:guy1-31/+41
- display the type of segmented message in the info column - don't dissect the last IE in the 1st segment if it is incomplete - don't dissect IEs in following segments as segment boundaries usually don't IE boundaries git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10097 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-18Newlines don't belong in format strings for the "proto_tree_add"guy1-7/+7
routines. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10093 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-18From Rolf Fiedler: German ISDN carriers don't supply the seconds in theguy1-12/+17
date/time IE, so support IE lengths of 5 (no seconds) or 6 (includes seconds). Merge the two AUTHORS and man page entries for him. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10089 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-26Add a dissector table for LAPD SAPIs, and move the #defines for themguy1-1/+7
into "lapd_sapi.h". Use that to register the Q.931 dissector atop LAPD. From Rolf Fiedler: ISDN TEI management frame support. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9864 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-16From Tomas Kukosa: there are 3, not 4, bits of codeset in an IE.guy1-28/+3
That means that the codeset number cannot be bigger than the number of elements in "q931_info_element_vals[]", so we can get rid of the checks for the codeset value; we also make NUM_INFO_ELEMENT_VALS equal to (Q931_IE_SHIFT_CODESET+1), to make this clearer. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9676 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-15From Anders Broman: dissect access transport, user teleservice info,guy1-17/+26
user service infor prime, and echo control information parameters. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9668 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-10The Q.931 dissector never checked whether the codeset variable was set to a ↵sahlberg1-2/+28
reasonable value or not. This was problematic and caused crashes since this variable is used as an index into an array where we grab a pointer (which is later dereferenced). Dereferencing that pointer will have surprising effects. Usually crashes. Update Q.931 to verify sanity of the codeset variable everytime it gets set. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8927 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-03Fro Anders Broman: fix the meaning of the extension bit, and add someguy1-79/+76
more bitfields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8869 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-30From Anders Broman:guy1-28/+45
fix the offset when putting the cause code in a Cause IE into the protocol tree; in a Number IE, show the number type, numbering plan, and extension indicator as named-field bitfields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8828 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-21Remove a bunch of duplicate semicolons.gerald1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8509 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-03Fix the bit mask for the parity level 1 information.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8349 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-05Fix up white space.guy1-13/+18
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8139 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-05From Tomas Kukosa:guy1-63/+150
use the codeset value; allow subdissectors for user-specific IEs, and for codesets, to be registered. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8138 f5534014-38df-0310-8fa8-9805f1628bb7
2003-07-08Put in stuff to dissect the body of a cause IE, just as the Q.2931guy1-92/+232
dissector does. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7985 f5534014-38df-0310-8fa8-9805f1628bb7
2003-06-25As per the previous checkin, 0x08 bit means a *non*-locking shift, not aguy1-3/+3
locking shift; rename the #define for the bit. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7926 f5534014-38df-0310-8fa8-9805f1628bb7
2003-06-24From Tomas Kukosa:guy1-58/+60
1) Swap locking/non-locking shift IEs. It was used in wrong way. "0" indicates locking and "1" indicates non-locking shift. 2) Return back to last locked codeset instead of codeset 0 after non-locking shift. 3) Handling of unknown single-octet IEs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7919 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-14From Anders Broman: dissect user-to-user IEs in ISUP messages as Q.931guy1-2/+2
UU IE's. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7456 f5534014-38df-0310-8fa8-9805f1628bb7
2003-03-12From Anders Broman: fix the names of some fields.guy1-4/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7346 f5534014-38df-0310-8fa8-9805f1628bb7
2003-02-28"packet-isup.c" doesn't appear to need to include "packet-ip.h", soguy1-5/+6
don't do so. Pick up Anders Broman's table of Q.850 cause values, and his change to use "dissect_q931_cause_ie()" for cause indicators - but do it by modifying the Q.931 dissector's "dissect_q931_cause_ie()" to take, as an argument, the header field to use for the cause value, and export that routine and have the ISUP dissector call it, rather than by duplicating the cause IE dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7225 f5534014-38df-0310-8fa8-9805f1628bb7
2003-02-28From Anders Broman: make the cause value, and various phone numbers,guy1-14/+55
filterable fields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7224 f5534014-38df-0310-8fa8-9805f1628bb7
2002-11-09Display the call reference flag, and don't include that bit in the callguy1-4/+18
reference value. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6593 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-28From Tomas Kukosa:gerald1-1/+3
Offset shifting after Coding standard octet was missing. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6352 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-17From Andreas Sikkema: add the connected number information element.guy1-1/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6300 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer1-16/+16
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-5/+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-05-14From Kan Sasaki: added some VSAs from the FreeRadius dictionary filesguy1-3/+3
and other changes to RADIUS. Export the Q.931 cause location and code values, and use them in the RADIUS dissector for ACC cause codes and values. Make "CHAP" all caps, as it should be, and use InterCaps in AppleTalk (Apple does). The CHAP Challenge is an octet string, not a text string - the FreeRadius dictionary has an error there. In "rdconvertinttostr()", if there's no value_string table, just print the value numerically, don't call "rd_match_strval()". Don't pass a null value_string pointer to "rd_match_strval_attrib()" - just report the value, without attempting to find a string for it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5460 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-13Have "is_tpkt()" take a minimum-payload-length argument and checkguy1-15/+13
whether the length value in the TPKT header is large enough to include that much payload - if not, report the packet as not being a TPKT packet. Have the heuristic Q.931 dissector supply the appropriate value. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5457 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-25From Andreas Sikkema: put the H.225 stuff at the top level of theguy1-2/+2
protocol tree. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5017 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-05There's just a single H.225 dissector, for both Call Signaling andguy1-9/+11
Registration, Admission, and Status, so just call it "h225", not "h225_cs". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4871 f5534014-38df-0310-8fa8-9805f1628bb7
2002-02-23In the Q.931-over-TPKT-over-TCP dissector, if the TCP segment we'reguy1-2/+9
handed looks as if it contains only a TPKT header (4 bytes long, and those 4 bytes look like a TPKT header according to "is_tpkt()"), call the "dissect TPKT over a TCP stream" routine. If we're doing reassembly, that routine will force a reassembly because the TPKT payload isn't in that segment, and the various heuristic XXX-over-TPKT dissectors will be called again, this time with enough data for them to say whether the TPKT payload is for them or not; if we're not doing reassembly, we'll dissect the TPKT header and then call the "dissect a Q.931 PDU" routine, which will throw an exception because there isn't any payload from which to fetch data (and that's what we want to happen). In the "dissect TPKT over a TCP stream" routine, if reassembly is enabled, do the check to see if we need to do reassembly to get the payload before dissecting the TPKT header, so that we don't dissect the TPKT header and then decide "oops, we need some more data to get the TPKT payload". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4792 f5534014-38df-0310-8fa8-9805f1628bb7
2002-02-23"is_tpkt()" is always used to check a TCP segment to see if it mightguy1-7/+17
have a TPKT header at the beginning, so there's not need for it to have an offset as an argument; its callers don't have to know how big the TPKT header is (or we can put a #define in "packet-tpkt.h" for it). Get rid of the second argument. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4791 f5534014-38df-0310-8fa8-9805f1628bb7
2002-02-22Handle TPKT packets split across segment boundaries, and multiple TPKTguy1-24/+29
packets per segment. Instead of having a routine for dissectors such as the Q.931 dissector to call to dissect the TPKT header, have a routine that does all the reassembly and multiple-packets-per-segment work, and have the Q.931 dissector call it. Export "is_tpkt()", and the new routine, to plugins. Add preferences for TPKT and Q.931 reassembly. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4778 f5534014-38df-0310-8fa8-9805f1628bb7
2002-02-12Have a Q.931-over-TPKT TCP heuristic dissector.guy1-277/+274
Have the Q.931 PDU dissector, if it's Q.931-over-TPKT, check for user-user IEs with a protocol discriminator of "X.208 and X.209 coded user information" and, if it sees one, call an H.225.0 Call Setup dissector if it could find the handle for it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4723 f5534014-38df-0310-8fa8-9805f1628bb7
2002-02-02Clean up the heuristic code in the Q.931 dissector. If it's a heuristicguy1-70/+38
dissector, it's looking for Q.931 encapsulated inside TPKT, so it shouldn't check whether the first byte is NLPID_Q_931 or not, as it *won't* be NLPID_Q_931, it'll be 3, for the TPKT version. It should first check whether "is_tpkt()" thinks it's a TPKT packet, and then check that the packet has at least 3 bytes past the TPKT header, then check the first byte in the payload to see whether it's NLPID_Q_931. If that all succeeds, treat it as Q.931 inside TPKT. Make "is_tpkt()" return the length from the TPKT header on success, and -1 on failure, and return the offset past the TPKT header via a pointer (so clients don't have to know that the TPKT header is 4 bytes long). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4669 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-3/+3
"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-5/+5
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-09-14Make the resolution for time values be nanoseconds rather thanguy1-4/+2
microseconds. Fix some "signed vs. unsigned" comparison warnings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3934 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-03Use the "pinfo" argument, rather than the global "pi", to refer to theguy1-3/+2
packet information in tvbuffified dissectors. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3645 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-18From Joerg Mayer: explicitly fill in all members of aguy1-5/+5
"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-27Call the Q.931 dissector through a handle.guy1-4/+4
Update Gerald's e-mail address. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3462 f5534014-38df-0310-8fa8-9805f1628bb7
2001-03-30Q.931 protocol discriminators aren't, at least as I read Q.931, the sameguy1-32/+24
as ISO/IEC TR 9577 protocol identifiers, even if they may, in some cases, use the same value for the same protocol. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3210 f5534014-38df-0310-8fa8-9805f1628bb7
2001-03-28Handle, in the Q.931 heuristic dissector, the case where TPKT isn'tguy1-1/+7
enabled. Fix comments to explain that a return of -1 from "dissect_tpkt_header()" means "TPKT wasn't enabled". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3200 f5534014-38df-0310-8fa8-9805f1628bb7