aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/k12.c
AgeCommit message (Collapse)AuthorFilesLines
2009-04-22Signed vs. unsigned fix.Guy Harris1-1/+1
svn path=/trunk/; revision=28119
2009-04-22Clean up some 64-bit issues.Guy Harris1-103/+103
svn path=/trunk/; revision=28117
2009-03-31Add a check to make sure we don't try to allocate a huge buffer. IfGerald Combs1-7/+11
we get an improper buffer length, throw an error instead of aborting. Clean up the debugging code. svn path=/trunk/; revision=27918
2009-03-15From Jakub Zawadzki:Stig Bjørlykke1-6/+2
More remove checking for NULL before g_free(). svn path=/trunk/; revision=27728
2009-03-09P64 fixes.Gerald Combs1-2/+2
svn path=/trunk/; revision=27683
2009-03-08Change a a remaining eth_fopen to ws_fopen (used only under an #if debug).Bill Meier1-1/+1
svn path=/trunk/; revision=27659
2008-09-03g_ascii_strdown() and g_ascii_strup(), unlike g_strdown() and g_strup(),Guy Harris1-1/+7
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-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2008-06-23Fixed some "shadowed variables", as pointed out by John Smith.Stig Bjørlykke1-13/+13
svn path=/trunk/; revision=25539
2008-05-08From Anders: Checkapi enabled for wiretap and more functions converted.Martin Mathieson1-1/+1
svn path=/trunk/; revision=25257
2008-01-24s/%ll/%" G_GINT64_MODIFIER "/gJeff Morriss1-2/+2
svn path=/trunk/; revision=24181
2007-10-16From tmiller@hcjbtech.org : Spelling error on GDS DB protocol dissector: ↵Sake Blok1-3/+3
"Buffer lenght:" (recursively grepped through the source and corrected all occurences, even the ones just in comments) svn path=/trunk/; revision=23211
2007-10-16Change more fopen() to eth_fopen() to finish fixing bug 1827:Jeff Morriss1-166/+166
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1827 Update README.developer to tell developers not to use fopen() and friends directly. svn path=/trunk/; revision=23206
2007-09-28Add error checking for fwrites; replacement for the 2nd of the patches ↵Bill Meier1-22/+44
provided in bug #1864 svn path=/trunk/; revision=23015
2007-06-13Fix coverity bug 244, [WS Bug 1649]Luis Ontanon1-30/+21
svn path=/trunk/; revision=22091
2007-04-21Explicitly mark new_k12_file_data() as taking no arguments - in C89, atGuy Harris1-1/+1
least, "int foo()" defines or declares an old-style function, not one with no arguments. svn path=/trunk/; revision=21488
2007-04-02There are odd packet records in k15 generated files where the interface ↵Luis Ontanon1-4/+33
record does not match any given one. I noticed that these records have the first byte changed so When a lookup fails mask the byte and lookup again. svn path=/trunk/; revision=21303
2007-03-21fix another warningUlf Lamping1-1/+1
svn path=/trunk/; revision=21079
2007-03-21set compiler option "treat warnings as errors" - to prevent new warnings for ↵Ulf Lamping1-1/+1
wiretap remove all compiler warnings: a) prevent wrong malloc/free definitions by lex/yacc generated files b) add int/time_t casts - MSVC2005 is more "sensitive" about this than MSVC6 svn path=/trunk/; revision=21078
2007-03-17rename a variable.Luis Ontanon1-5/+5
svn path=/trunk/; revision=21045
2007-03-17K15 final:Luis Ontanon1-20/+5
add another interface record type with the very same arch than the "old" one. now I can read all the K15 files I got. svn path=/trunk/; revision=21044
2007-03-17K15 phase 1Luis Ontanon1-169/+207
be able to read files with records larger than 0x2000 bytes this fixes http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=532 svn path=/trunk/; revision=21043
2007-03-10Major cleanup of debug code and whitespace changes.Luis Ontanon1-700/+632
svn path=/trunk/; revision=21013
2007-02-08From: Kriang LerdsuwanakijLuis Ontanon1-2/+28
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-04from:Luis Ontanon1-30/+63
Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> I discovered that Wireshark K12xx detects the type of input (E1 timeslot or ATM) based on the extra information. My previous patch to enable Wireshark to open K12xx files with no extra information (extra_len equals 0 in SRCDEST record) failed to give later dissectors the input type. Attached is the patch to correct this for ATM PVC. It adds VPI/VCI/CID information for display in the dissected tree (in k12_open function). k12_read and k12_seek_read are also made more robust. These are reverse engineered based on hexeditor and constants found in tektronix configuration file. Please apply the patch. svn path=/trunk/; revision=20705
2007-01-28from Kriang LerdsuwanakijLuis Ontanon1-2/+2
I found out the reason Wireshark refuses to read some .rf file I have. Those files have zero extra_len in SRCDEST header structure. See the attached file for example. It was created by selecting some frames from a larger .rf5 file (within Tektronix's own reader) and save as a separate file. svn path=/trunk/; revision=20579
2006-11-05change all file offsets from long to gint64 so we can - theoretically - ↵Ulf Lamping1-7/+7
handle files > 2GB correct. Please distclean Win32 builds! svn path=/trunk/; revision=19814
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵Ulf Lamping1-1/+1
necessary for the switch to GTK 2.6 (at least on WIN32). to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place. deleted related things from config.h.win32 As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon. svn path=/trunk/; revision=16403
2005-10-24- packet records with AAL5 Pdus or AAL2 Sdus contain VP/VC and CID info in ↵Luis Ontanon1-109/+201
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-13make sure tham when more than one stack file is used each channel uses the ↵Luis Ontanon1-22/+184
right stack file. svn path=/trunk/; revision=16218
2005-09-08Fix more problems found by Steve Grubb, along with other changes:Gerald Combs1-0/+1
Camel: Fix an off-by-one error. Don't alloc and free where it's not needed. Remove an unused variable. PPP and K12: Fix memory leaks. svn path=/trunk/; revision=15725
2005-08-25timestamp display precision:Ulf Lamping1-0/+1
- automatic adjustment depending on file format - manual adjustment through menu items save the setting in the recent file svn path=/trunk/; revision=15534
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping1-3/+3
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... svn path=/trunk/; revision=15520
2005-08-22Two fixes to tektronix k12 import:Luis Ontanon1-2/+7
- 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-08-02Include the .h files into the .c files. That way weJörg Mayer1-0/+1
a) get rid of warnings of type "no previous declaration" and b) make sure that declaration and implementation are in sync. svn path=/trunk/; revision=15168
2005-06-17- Write rf5 files (I don't think tektronix software will be able to read ↵Luis Ontanon1-5/+256
these, ethereal does) - change k12.atm.vci and k12.atm.vpi into atm.vci and atm.vpi svn path=/trunk/; revision=14682
2005-06-16third and last(?) iteration on the import routines for tektronix 32bit rf5 ↵Luis Ontanon1-324/+199
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-262/+244
svn path=/trunk/; revision=14621
2005-06-10Fixed indentation and removed control characters, in an attempt to ↵Luis Ontanon1-29/+27
understand why windows fail to compile. svn path=/trunk/; revision=14607
2005-06-10Initial checkin of the 32 bit tektronix k12 binary format (rf5)Luis Ontanon1-0/+553
There is still much to do, but at the very least it can import files allowing the user to choose which protocols handle the diferent sources. svn path=/trunk/; revision=14606