aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-k12.c
AgeCommit message (Collapse)AuthorFilesLines
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-1/+1
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) svn path=/trunk/; revision=35224
2010-10-29Make the third argument to a UAT copy callback a size_t (not that any ofGuy Harris1-1/+1
the callbacks we have use that argument - is it really needed?). svn path=/trunk/; revision=34694
2010-04-03Remove unneeded #include <stdio.h>Bill Meier1-1/+0
svn path=/trunk/; revision=32367
2010-03-04From LEGO via bug 3459:Stig Bjørlykke1-0/+1
Add a callback to UAT to be called after the table has being updated, use it to renew the snmp_ue_cache. svn path=/trunk/; revision=32112
2009-08-06Fix compilation warnings in a few dissectors and try moving them to theGerald Combs1-1/+1
"clean" list. svn path=/trunk/; revision=29313
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-8/+8
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero svn path=/trunk/; revision=28770
2009-04-20More constification to fix warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=28096
2009-03-13From Jakub Zawadzki (bug 3331):Stig Bjørlykke1-5/+5
g_free() is NULL safe, so we don't need check against it. svn path=/trunk/; revision=27718
2009-02-16Add an additional "title" attribute for UAT fields; that's what'sGuy Harris1-2/+2
displayed to the user. svn path=/trunk/; revision=27462
2008-12-30Comment parameters in call to uat_new()Martin Mathieson1-6/+6
svn path=/trunk/; revision=27133
2008-09-03That #include is necessary to get epan_strcasestr() declared;Guy Harris1-0/+1
unfortunately, that didn't show up in a build, as this file isn't yet clean and isn't yet built with -Werror. svn path=/trunk/; revision=26135
2008-09-03g_ascii_strdown() and g_ascii_strup(), unlike g_strdown() and g_strup(),Guy Harris1-3/+2
do *not* modify the string handed to them - they g_mallocate a new string and return it. Create routines that *do* ASCII-only case mapping in place, and use them instead. Clean up indentation. svn path=/trunk/; revision=26131
2008-08-04if it's se allocated it needs to be filled only once.Luis Ontanon1-10/+7
svn path=/trunk/; revision=25924
2008-08-04Fix an ep memory corruption due to passing ep blocks into a se allocated ↵Luis Ontanon1-4/+4
structure. far away from UAT... svn path=/trunk/; revision=25923
2008-06-04- Make FP radio division mode/speed explicit in struct for R7Martin Mathieson1-0/+6
- Various R7 fixes svn path=/trunk/; revision=25425
2008-05-09Fix some of the Errors/warnings detected by checkapi.Anders Broman1-1/+1
svn path=/trunk/; revision=25261
2008-04-07- Remove GLIB1 codeStephen Fisher1-1/+0
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION - Remove ws_strsplit files because we no longer need to borrow GLIB2's g_strsplit code for the no longer supported GLIB1 builds svn path=/trunk/; revision=24829
2008-03-06Added an option to uat_new() to set if configuration shall be saved in theStig Bjørlykke1-0/+1
selected profile. Don't save SMI Paths and SMI Modules in the profiles because reloading currently doesn't work (bug 2309). svn path=/trunk/; revision=24580
2008-02-07Corrected some types.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=24280
2007-11-20Reindent some to improve readabilityJeff Morriss1-71/+92
svn path=/trunk/; revision=23510
2007-07-17Have the encapsulation selection match on the port name as well as stk filename.Luis Ontanon1-2/+3
svn path=/trunk/; revision=22340
2007-06-12This should fix Coverity's CID: 240 (Bug 1648)Luis Ontanon1-2/+5
svn path=/trunk/; revision=22084
2007-05-08From Kriang Lerdsuwanakij:Martin Mathieson1-7/+14
This patch adds the handling of Spare Extension bytes to UMTS Frame Protocol. It also handles the case when the presence of CRC in dedicated channels is not known (i.e. when FP from a K12/K15 log is dissected). The new functionality is placed in the new function "dissect_spare_extension_and_crc". The "dch_crc_present" field inside "struct fp_info" (file packet-umts_fp.h) is also extended to handle the case of unknown CRC presence. Much of other changes is to update "offset" variable and return it so that the location of Spare Extension and CRC is available. The patch also include a small tweak to handle Frame Protocol information saved from K15. Some fields appear 8 bytes later compared to K12. The changes are in the file packet-k12.c. svn path=/trunk/; revision=21726
2007-04-23Add some GCC warnings to the standard set, and add some others to theGuy Harris1-2/+2
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. svn path=/trunk/; revision=21526
2007-02-14Try to fix a naming conflict on Windows.Gerald Combs1-32/+32
svn path=/trunk/; revision=20814
2007-02-14Change fp_info struct to be more general by removing DCT2000-specific field.Martin Mathieson1-2/+5
Also: - Fix a division-by-zero error in FP dissector - Correct the way DCT2000 IPPrim addresses and ports are dissected and displayed svn path=/trunk/; revision=20812
2007-02-13From Sebastien Tandel:Stephen Fisher1-0/+1
Create two new files (ws_strsplit.[ch]) that use GTK2 code to override the buggy g_strsplit() function when compiling for GTK1. Include this work-around function (ws_strsplit) in libwireshark.def. Add notes on usage to README.developer. Include epan/ws_strsplit.h in all files that use g_strsplit(). svn path=/trunk/; revision=20804
2007-02-12Add a description of UAT fields, and have it as a tooltip in the New/Edit ↵Luis Ontanon1-2/+6
Dialog. svn path=/trunk/; revision=20797
2007-02-08From: Kriang LerdsuwanakijLuis Ontanon1-8/+103
In the attached patch, the K12 wiretap now saves the content of record after captured packet data. The K12 dissector then could extract them and provide useful information to properly dissect FP frames (user plane of UTRAN Iub interface). svn path=/trunk/; revision=20749
2007-02-07* Add a category param to the uat.Luis Ontanon1-0/+1
* UATify SNMP Users svn path=/trunk/; revision=20736
2007-02-07From: Gisle VanemLuis Ontanon1-1/+2
The file epan/dissectors/packet-k12.c uses the function strcasestr() which is not available on e.g. Windows. So I cooked up a patch to epan/strutil.c to add epan_strcasestr() (is there a more suited place for such a function?) svn path=/trunk/; revision=20734
2007-02-05* Add a help facility for UATsLuis Ontanon1-0/+1
* export help_topic_html() svn path=/trunk/; revision=20717
2007-02-04UATify k12 configurationLuis Ontanon1-162/+164
svn path=/trunk/; revision=20707
2007-01-28From Kriang Lerdsuwanakij:Luis Ontanon1-18/+97
1 Add ALCAP and NBAP as subdissectors of SSCOP. Previously it only knows about SSCF-NNI and data. (Changes in packet-sscop.c, packet-sscop.h) 2 Add capability for lower layer to force SSCOP to choose a particular dissector. It is passed as "subdissector" field of SSCOP protocol data. This is required because different payload protocol is distinguished by different VPI/VCI. There is no protocol field inside SSCOP frame. (Changes in packet-sscop.c, packet-sscop.h) 3 Make K12xx configuration file supporting the following syntax: C:\k1297\stacks\umts_iub\umts_iub_aal2l3.stk sscop:alcap This says dissect with SSCOP first and then pass to ALCAP. The change is made general, so it supports arbitrary number of protocol, like "proto1:proto2:proto3". Using ":" as separator allow us to expand the syntax further to support parameters like "proto1 param1:proto2 param2 param3". (Changes in packet-k12.c) With above 3 changes together, dissecting Iub traces are correct for control and signaling planes. I am still investigating user plane frames because writing UMTS RLC/MAC protocol dissector is required. The patch and sample .rf file (same as my previous patch) is in the attachment. plus: Add Kriang to the AUTHORS list (and once at it upate my own record) svn path=/trunk/; revision=20580
2006-12-14From Sebastien Tandel: don't allocate a hash table until a little bit later ↵Jeff Morriss1-1/+3
in the function so memory is not leaked by an early (error) return svn path=/trunk/; revision=20138
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2006-03-11Close the files after reading!Luis Ontanon1-0/+1
svn path=/trunk/; revision=17591
2005-10-24- packet records with AAL5 Pdus or AAL2 Sdus contain VP/VC and CID info in ↵Luis Ontanon1-2/+16
the packet record, use that instead of the one in the intreface description record. - Fix Timestamps that got broken with nanoseconds. - Add some more disabled code for debugging. svn path=/trunk/; revision=16294
2005-10-17In packet-dcerpc-nt.c, make sure we call init_pol_hash() each time we loadGerald Combs1-28/+28
a capture file. This should fix bug #536. Make sure we initialize our hash tables in packet-dcerpc-nt.c and several other files. Fix up whitespace while we're at it. svn path=/trunk/; revision=16255
2005-08-22Two fixes to tektronix k12 import:Luis Ontanon1-1/+3
- it appears that there are more packet record types other than 0x00010020. accept anything matching 0x00010020/28 as a packet record. - make the stack filename lowercase before comparing it so that capitalization is not an issue. svn path=/trunk/; revision=15513
2005-07-24Constify to remove a bunch of warnings. Add some casts to squelchGuy Harris1-4/+4
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst warnings. In the TACACS dissector, clean up the variables used in option parsing to avoid some const-to-nonconst warnings. Clean up some white space. svn path=/trunk/; revision=15043
2005-06-18- Use report_error and Co. to report errorsLuis Ontanon1-18/+20
svn path=/trunk/; revision=14688
2005-06-17- Write rf5 files (I don't think tektronix software will be able to read ↵Luis Ontanon1-2/+2
these, ethereal does) - change k12.atm.vci and k12.atm.vpi into atm.vci and atm.vpi svn path=/trunk/; revision=14682
2005-06-16Remove unused variable.Guy Harris1-3/+2
Clean up indentation. svn path=/trunk/; revision=14662
2005-06-16third and last(?) iteration on the import routines for tektronix 32bit rf5 ↵Luis Ontanon1-9/+46
files. Now the import is correct even for large files. I found out when and where the "junk" was inserted. svn path=/trunk/; revision=14646
2005-06-13use a helper dissector to show k12 files.Luis Ontanon1-0/+199
svn path=/trunk/; revision=14621