aboutsummaryrefslogtreecommitdiffstats
path: root/epan
AgeCommit message (Collapse)AuthorFilesLines
2006-01-23Rename all the COOK_ macros to indicate the field from which they'reGuy Harris1-35/+39
extracting data (except for the association ID field, where adding ASSOC_ID would be redundant). svn path=/trunk/; revision=17081
2006-01-23From Sam Leffler:Guy Harris2-175/+297
1. Fix a bug in caclulating the 802.11 header length for QoS data frames (way bad regression from previous code). 2. Add support for packets w/ data padding between the 802.11 header and the payload (as indicated in the radiotap flags). 3. Add support for handling FCS indication in the radiotap flags. 4. Fix display of TSF (previous code was not byte swapping). 5. Update ieee80211_mhz2ieee in radiotap.c to handle more channels. 6. Nuke some #if 0 code I left in radiotap.c a while back. Also, clean up the various macros that extract stuff from 802.11 header fields or define bitfields within those header fields: group them by the fields from which they extract and the values they extract, or the header fields to which they belong; get rid of some of the COOK_ in the names - COOK_ really doesn't indicate anything useful, such as the field from which they're extracting (we should get rid of the rest); put in some more comments explaining what they do; get rid of some unused macros; get rid of some values that aren't flag values - they're values to test whether something's a data frame with a particular byte set in the subtype field, but they're only used on data frames, so we only need to test the bit in question, so we define macros to test the bit and name them to indicate that they're for use on data frames. Consistently use "CF-Ack" and "CF-Poll" in the strings for various data frame type/subtype values, and get rid of "802.11" (it should be obvious to one and all that this is 802.11...). Comment out some variables used only in commented-out code. Get rid of some unused variables. Fix up one "proto_tree_add_text()" call where the format string didn't match the arguments. svn path=/trunk/; revision=17080
2006-01-23Implemention of T38 TCP defragmentation by Alejandro VaqueroJaap Keuter1-101/+114
svn path=/trunk/; revision=17079
2006-01-23From Marc Petit-Huguenin:Anders Broman1-8/+35
This patch for the STUN dissector fixes a bug (wrong value for DATA_INDICATION attribute) and adds the decoding of IPv6 address in attributes. svn path=/trunk/; revision=17078
2006-01-22Get rid of unused variables, fix indentation, don't assign NULL toGuy Harris1-11/+7
non-pointer variables. svn path=/trunk/; revision=17077
2006-01-22"size_t" can be "unsigned int" or "unsigned long", so cast it toGuy Harris1-2/+2
"unsigned long" and print it with %lu. svn path=/trunk/; revision=17076
2006-01-22Dissect CellGlobalIdOrServiceAreaIdOrLAI and RAIdentityAnders Broman3-14/+64
svn path=/trunk/; revision=17075
2006-01-22simply use DISSECTOR_ASSERT() to detect tvb problems instead of my previous ↵Ulf Lamping1-3/+1
commit svn path=/trunk/; revision=17074
2006-01-22add fragment_get_reassembled_id so the handed id doesn't need to be a packet ↵Ulf Lamping3-0/+27
number (experimental) add a check to fragment_add_common() if the given tvb parameters are ok, otherwise throw a DissectorError add some more symbols to libethereal.def svn path=/trunk/; revision=17073
2006-01-22Win32: call an existing debugger if a DissectorError is thrown. This ↵Ulf Lamping1-0/+13
preserves the call stack of the bug making debugging much easier. This can't be done in every error throwing case, as e.g. throwing a ReportedBoundsError might happen a lot even if no bugs are involved. Anyway, extending this to other errors can be done manually while debugging. svn path=/trunk/; revision=17072
2006-01-22add Win32 Structured Exception Handling (SEH) at the same place we're ↵Ulf Lamping1-2/+26
already doing the Portable Exception Handling. This way we (hopefully) can continue dissecting with the next packet, even if a more serious exception had occured, e.g. a memory access violation or a divide by zero exception. Obviously, not all problems solved, as SEH won't protect us from other problems, e.g. endless loops and such svn path=/trunk/; revision=17070
2006-01-21RANAP - Dissect ProtocolExtensionField IE:sAnders Broman3-14/+18
GSM A - Service Request; Mobile identity element is LV type svn path=/trunk/; revision=17069
2006-01-21add matched coloring rule name and string to the frame dissector output (or ↵Ulf Lamping1-1/+23
nothing if no coloring rule matched or none was set) svn path=/trunk/; revision=17068
2006-01-20packet-bgp.c: Fix incorrect use of g_snprintf return valueJörg Mayer12-123/+169
mp_addr_to_str was unnecessary 'complex' - simplified it packet-dns.c: Fix incorrect use of g_snprintf return value packet-dcm.c: Fix incorrect use of g_snprintf return value Someone who understands the protocol should look at the "vr, tr might be used uninitialized..." warning. packet-x11.c: Fix incorrect use of g_snprintf return value packet-kerberos.c: Fix incorrect use of g_snprintf return value Someone should take a look at the "longjump might clobber ..." messages packet-diameter.c: Fix incorrect use of g_snprintf return value Get rid of unsigned < 0 check packet-pgm.c: Fix incorrect use of g_snprintf return value packet-nbns.c: Fix incorrect use of g_snprintf return value packet-winsrepl.c: Collateral damage to packet-nbns.c fix packet-netbios.c: Collateral damage to packet-nbns.c fix packet-netbios.h: Collateral damage to packet-nbns.c fix packet-kerberos.c: Collateral damage to packet-nbns.c fix packet-nbipx.c: Collateral damage to packet-nbns.c fix svn path=/trunk/; revision=17065
2006-01-20Dissect:Anders Broman3-100/+346
- PDPcontext - GSN-Address - QoS svn path=/trunk/; revision=17063
2006-01-20Handle sgmented XUDT:sAnders Broman1-1/+56
svn path=/trunk/; revision=17060
2006-01-20Mike Hall:Jörg Mayer4-1/+18
This will add the ability to configure a .1q vlan column in ethereal. Me: Change 1q -> 1Q svn path=/trunk/; revision=17058
2006-01-19Make sure we don't use the ADNS version of inet_aton; it's broken.Gerald Combs3-17/+14
This fixes bug 523, but exposes more of bug 658. The TACACS and SDP dissectors don't call inet_aton(), so don't include it. svn path=/trunk/; revision=17056
2006-01-19ext_qos_subscribed was not correctly decoded in Camel and GSM MAPAnders Broman3-96/+259
Change to use proto_add_item in packet-gsm_a.c for some octets and export value strings. svn path=/trunk/; revision=17055
2006-01-19Dont dissect XDT data in case of Segmentation as that will give [Malformed ↵Anders Broman1-1/+84
packet] and the Segmentation IE will n ot be dissecterd. svn path=/trunk/; revision=17054
2006-01-19add "RPC_E_TIMEOUT" to the reject status codesUlf Lamping1-0/+1
svn path=/trunk/; revision=17053
2006-01-18Add option presentation, solving bug 697Jaap Keuter1-3/+5
svn path=/trunk/; revision=17052
2006-01-18In packet-cops.c use proto_item_append_text() instead of creating aGerald Combs3-40/+49
separate buffer. Fixes the current Buildbot failure. Don't let the sprint_realloc_* functions reallocate ep_allocated memory. Add comments warning against this in the future. In emem.c, make sure we don't use an extra 100k every stinkin' time someone wants to allocate memory when debugging is enabled. Fixup whitespace. svn path=/trunk/; revision=17051
2006-01-17Change some OPCODE decodes from respons to Invoke (bug fix), let gsm_a ↵Anders Broman3-32/+97
decode som IE:s. svn path=/trunk/; revision=17050
2006-01-17Add ethertypes and value_str for IEC 61850Anders Broman2-0/+24
svn path=/trunk/; revision=17049
2006-01-17Fix an off-by-one error. Fixes bug 698, possibly others.Gerald Combs1-1/+2
svn path=/trunk/; revision=17048
2006-01-17According to 802.11e D11, 7.3.2.13, station count is a 16 bit value.Jörg Mayer1-5/+5
Accoding to 802.11, 7.1.1, numbers are little endian. svn path=/trunk/; revision=17047
2006-01-17packet-fcswils.c: Fix incorrect use of g_snprintf returnJörg Mayer4-21/+43
packet-wccp.c: Fix incorrect use of g_snprintf return packet-cops.c: Fix incorrect use of g_snprintf return value packet-wtp.c: Fix incorrect use of g_snprintf return value svn path=/trunk/; revision=17046
2006-01-17- Replace snprintf by g_snprintfJörg Mayer1-25/+21
- Beginning of incorrect g_snprintf retval ussage fixes - Make qbss station count a byte again until we know whether the count is a 2 byte le value instead svn path=/trunk/; revision=17045
2006-01-17Fix typo, solving bug 693Jaap Keuter1-1/+1
svn path=/trunk/; revision=17044
2006-01-17MSVC compiler warnings:Ulf Lamping1-3/+3
packet-ldap.c(784) : warning C4101: 'seq_len' : unreferenced local variable packet-ldap.c(782) : warning C4101: 'length' : unreferenced local variable packet-ldap.c(785) : warning C4101: 'header_bytes' : unreferenced local variable svn path=/trunk/; revision=17041
2006-01-16done:Jörg Mayer19-59/+64
packet-ntp.c: Rather confused and incorrect use of g_snprintf return value packet-pim.c: whitespace change packet-icmpv6.c: g_snprintf takes trailing \0 into account, fix off by 1 error packet-clnp.c: Fix incorrect use of g_snprintf return value packet-isakmp.c: g_snprintf takes trailing \0 into account packet-tr.c: Fix incorrect use of g_snprintf return value packet-radius.c: Fix incorrect use of g_snprintf return value packet-radius.h: constify a string variable packet-ldap.c: The return value isn't needed, so don't use it incorrectly packet-tcp.c: Fix incorrect use of g_snprintf return value packet-windows-common.c: Remove unneeded DISSECTOR_ASSERT packet-smb-sidsnooping.c: g_snprintf takes trailing \0 into account packet-pvfs2.c: g_snprintf takes trailing \0 into account packet-ptp.c: Remove #include snprintf packet-ppp.c: Fix incorrect use of g_snprintf return value packet-ospf.c: Fix incorrect use of g_snprintf return value packet-mip6.c: snprintf -> g_snprintf packet-bootp.c: Remove a commented out bad use of g_snprintf packet-ber.c: snprintf -> g_snprintf, g_snprintf takes trailing \0 into account 2do: 52 packet-ieee80211.c: 2DO 2 packet-nfs.c: 2DO - too many side effects 33 packet-bgp.c: 2DO 18 packet-dns.c: 2DO 14 packet-dcm.c: 2DO 13 packet-x11.c: 2DO 11 packet-kerberos.c: 2DO 10 packet-diameter.c: 2DO 9 packet-snmp.c: 2DO 9 packet-pgm.c: 2DO 7 packet-nbns.c: 2DO 6 packet-fcswils.c: 2DO 5 packet-wccp.c: 2DO 5 packet-cops.c: 2DO 4 packet-wtp.c: 2DO svn path=/trunk/; revision=17038
2006-01-16From Alejandro Vaquero:Anders Broman2-50/+80
patch to add t38 setup info for h245 packets. - Me add /y to makefiles. svn path=/trunk/; revision=17036
2006-01-15Hi All,Jaap Keuter5-141/+1808
Find attached a couple of changes for t38: - Use the dissector to reassemble t30 frames - Dissect t30 protocol - Move the "Fax t38 analysis" to the "VoIP Calls". Now when selecting "Statistics"->"Fax t38 analysis" option, there is a message that redirect the user to use the "Voip calls" instead. We may keep this option for one release, and then remove it ? - Added in the "Voip calls" the ability to detect a t38 call if there are not signaling associated with it. For example, when using "Decode as.." to dissect t38 packets, it is possible to use the "Voip calls" to analyze that call. - Display "SDP (t38)" in the "Voip calls graph" for SDP t38 sessions. Regards Alejandro Vaquero svn path=/trunk/; revision=17033
2006-01-15add COTP to fragment COL_INFO message, so the user knows where the fragment ↵Ulf Lamping1-2/+2
is coming from svn path=/trunk/; revision=17032
2006-01-14Jaap Keuter:Jörg Mayer1-13/+9
I'm not too fond of using pointer arithmetic in such cases. How about this: svn path=/trunk/; revision=17031
2006-01-14We may not work with the length returned by g_snprintf, as this isJörg Mayer1-2/+11
the number of bytes that would have been used if the buffer was long enough. Fixes http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=686 svn path=/trunk/; revision=17030
2006-01-14MTP3 standard in SCCP MTP3 and M3UA will be determined by Preference setting ↵Anders Broman1-2/+2
in MTP3. svn path=/trunk/; revision=17029
2006-01-13- Change Cisco QBSS V2 to be part of the Aironet IE dissection.Jörg Mayer1-58/+32
- Change proto_tree_add_uint ( ...., tvb_get_guint8(...)) to proto_tree_add_item ( ....) for all qbss dissection code - Change all qbss occurrences scount to be 16 bits (I may have gotten endianess wrong! Testers / sample captures needed) - Change wlan_mgt.tag.aironet... filter to wlan_mgt.aironet... svn path=/trunk/; revision=17028
2006-01-13From Patrik OlssonJaap Keuter1-22/+61
Attached is a patch that fixes several decoding problem is the gsm_a dissector. The bugs are also submitted to bugzilla id #684 and #687. svn path=/trunk/; revision=17027
2006-01-13Add code to verify the shared secret for documentation purposes.Jörg Mayer1-1/+52
#if 0 that code. svn path=/trunk/; revision=17026
2006-01-12fix #648: Ulf Lamping3-5/+57
Win32 only: reading a pathname from an environment var requires us to read it in as unicode somehow and convert it to utf8. Using _wgetenv should work under all circumstances on NT, using getenv and g_locale_to_utf8 on Windows OT is the best we can do in this case. svn path=/trunk/; revision=17024
2006-01-12Add warning when UDP length field is too large.Jaap Keuter1-2/+10
Patch by Graeme Hewson svn path=/trunk/; revision=17023
2006-01-12Reset h245_pi using CLEANUP_PUSH/CLEANUP_CALL_AND_POP so that we don't leaveGerald Combs2-16/+170
ep_alloc()ated memory lying around. Fixes bug 667. Fixup whitespace. svn path=/trunk/; revision=17022
2006-01-12Fixes bug 679. Jaap Keuter1-1/+1
The offset wasn't passed to the PDU dissector so it always started dissection from the start of the TVB. svn path=/trunk/; revision=17020
2006-01-12oid_to_str_buf() keep enough speace before appending next part of string ↵Tomas Kukosa1-1/+1
(Bug 669) svn path=/trunk/; revision=17017
2006-01-12FromHannes GredlerAnders Broman1-40/+48
-rework the GGSN dissector to proper parse meta extensions -more graceful magic-number detection - for better (JUNOS 6.4) downwards compatability -correct calculate the offset to ATM cookies when there are meta-extensions present svn path=/trunk/; revision=17016
2006-01-12Before we begin dissection, NULLify some global variables that mightGerald Combs1-164/+167
contain ep_alloc()ed data from a previous dissection. Correctly fixes bug 651 (the previous fix was incorrect). svn path=/trunk/; revision=17015
2006-01-11From Thomas SillaberJaap Keuter2-4/+156
here is the Patch for: - AVA (Alcatel Automatic VLAN Assignment) - QBSS ( QOS Basic Service Set) svn path=/trunk/; revision=17008
2006-01-11set: The first 4 bytes seem to be the saltJörg Mayer1-25/+15
svn path=/trunk/; revision=17003