aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/asn1
AgeCommit message (Collapse)AuthorFilesLines
2007-01-12Win32: MSVC > 6 doesn't work well with Unicode filenames!Ulf Lamping1-1/+1
fix this, by providing required functions in the new file file_util.c - it's mostly copied from GLib (g_open alike - that take UTF8 as filename format but don't use msvcrt.dll V6 for this as the glib files do) "link" to these functions in file_util.h: #define eth_open eth_stdio_open revert changes (from SVN 20282) throughout the code related to these file functions which were introduced with the first tries of MSVC 2005 ... Hopefully I've done everything right with the new file_util.c ... svn path=/trunk/; revision=20402
2007-01-10Trying to get buildbot Ubuntu-5.10-x86 distcheck to build again.Jaap Keuter2-1/+12
Adding asn1.[ch] to the correct makefile symbols. svn path=/trunk/; revision=20379
2007-01-10move asn1.c/.h files into plugins/asn1 directory as just this plugin uses it nowTomas Kukosa4-2/+1208
svn path=/trunk/; revision=20372
2007-01-06add experimental support for some more of the MSVC_VARIANTs:Ulf Lamping1-1/+1
- Microsoft .Net Framework SDK Version 1.1 - Microsoft .Net Framework 2.0 SDK ... which seems to work fine now (except for the open problems like zlib) :-) Some of the plugins need different linker flags depending on the MSVC. I've set a "define" in config.nmake (PLUGIN_LDFLAGS) and used it in the affected plugins/.../Makefile.nmake. Maybe we should generally change the plugins that way. btw: The "Microsoft Visual C++ Toolkit 2003" (mentioned some time ago on the list) doesn't work as some important files are missing - and we have much easier alternatives now :-) svn path=/trunk/; revision=20332
2007-01-03clean should also remove generated plugin.c and manifest filesUlf Lamping1-2/+3
svn path=/trunk/; revision=20291
2006-12-19Add Windows version info resource.Jaap Keuter4-9/+87
svn path=/trunk/; revision=20157
2006-10-29put every python script name into "" so the call won't fail on Win32 native ↵Ulf Lamping1-1/+1
python. The problem is the slash in e.g.: @$(PYTHON) ../../tools/make-dissector-reg.py is interpreted as an option instead of being part of the path. I didn't wanted to use backslashes as this might introduce new problems with cygwin's python port. svn path=/trunk/; revision=19730
2006-09-29Use #defines from packet-ber.h rather than asn1.h change default ports to Zero.Anders Broman1-103/+104
svn path=/trunk/; revision=19367
2006-07-20snprintf -> g_snprintf. Fix up whitespace.Gerald Combs1-1/+1
svn path=/trunk/; revision=18776
2006-06-02remove plugin.c in distlcleanJörg Mayer1-1/+2
svn path=/trunk/; revision=18312
2006-05-31Tethereal/tethereal -> TShark/tshark.Gerald Combs1-1/+1
svn path=/trunk/; revision=18268
2006-05-31libethereal -> libwireshark. idl2eth -> idl2wrs. There are a _lot_ ofGerald Combs1-3/+3
changes here. It compiles OK on OS X, but hasn't been tested anywhere else. svn path=/trunk/; revision=18260
2006-05-28Ethereal->WiresharkAnders Broman1-43/+43
svn path=/trunk/; revision=18231
2006-05-21name changeRonnie Sahlberg3-6/+6
svn path=/trunk/; revision=18197
2006-05-02It looks like g_fopen() in the version of GLib that we ship with WindowsGerald Combs1-4/+3
sets errno to 0 when we can't open a file. This resurrected the annoying "C:\Program Files\Ethereal\asn1/default.tt" error in the ASN.1 plugin, since we depended on errno being set to ENOENT. Move some logic around to account for this. svn path=/trunk/; revision=18073
2006-04-22Convert most other plugin dissectors to use the make-dissector-regGuy Harris4-40/+161
scripts. svn path=/trunk/; revision=17961
2006-03-30Continue to play whack-a-mole with null dereferences. Fixes CID 146.Gerald Combs1-2/+2
svn path=/trunk/; revision=17770
2006-03-27Be more paranoid about dereferencing pointers (and improve readabilityGerald Combs1-33/+56
IMHO). This should hopefully take care of bug 826 / CID 42. svn path=/trunk/; revision=17744
2006-03-27Remove some unused #defines.Gerald Combs1-4/+0
svn path=/trunk/; revision=17736
2006-03-23Further refinements for Coverity CID 42. Make some "0"s (which were Gerald Combs1-137/+139
confusing my feeble mind) NULLs. Fix up whitespace. svn path=/trunk/; revision=17710
2006-03-20waste a couple of bytes per tcp conversation and make the tree for ↵Ronnie Sahlberg1-0/+1
acked_packets (i.e. packets that have interesting tcp properties such as being retransmissions etc) hang off the per conversation tcpd struct instead of being global. while this should improve performance by unmeasurably little it does have the sideeffect that once we finish the rewrite tcp analysis might actually work and work well even for tcp over tcp tunnelling. this also means that if you include packet-tcp.h you also need to include emem.h . svn path=/trunk/; revision=17681
2006-03-14coverity bug 43Ronnie Sahlberg1-1/+4
svn path=/trunk/; revision=17624
2006-03-09coverity bug#42Ronnie Sahlberg1-1/+3
dereverencing a null variable svn path=/trunk/; revision=17548
2005-11-07Use <wiretap/file_util.h> to include "file_util.h"; otherwise, theGuy Harris1-1/+1
include fails as we don't do -Iwiretap. If we have it, include <sys/stat.h> in epan/filesystem.c - we need it for stat() and the macros and structures it uses. svn path=/trunk/; revision=16410
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵Ulf Lamping1-3/+4
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-09-01convert to g_snprintf()Ronnie Sahlberg1-3/+0
also make range_convert_range() return an emem allocated string svn path=/trunk/; revision=15660
2005-08-08various code cleanup:Ulf Lamping1-22/+22
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2005-08-05From Thomas Steffen:Anders Broman1-1/+1
Fix a copy-paste error in the prefs. code svn path=/trunk/; revision=15225
2005-07-24Register the port range preferences as such, rather than doing our ownGuy Harris1-223/+95
range implementation. Make string preferences "const", to squelch compiler warnings, and make other variables and arguments "const" to match. Port numbers are unsigned; display them as such. svn path=/trunk/; revision=15037
2005-07-23'char*' -> 'const char*' to fix warningsJörg Mayer1-38/+41
svn path=/trunk/; revision=15014
2005-07-10After doing "make maintainer-clean", "svn status --no-ignore | grep ^I"Jörg Mayer1-1/+6
returned quite a list of files. Add them to MAINTAINERCLEANFILES. Whitespace changes (replace multiple spaces by TABs, in a few cases this needed to be done at the beginning of Makefile lines. svn path=/trunk/; revision=14891
2005-03-07Call the "new-style init" routine for plugins a "register" routine, asGuy Harris1-6/+6
it serves the same purpose as the register routine in a built-in dissector, and don't require all dissectors to have one, as they might just be taps. Get rid of the stats tree's init routine, as it's just a tap, and as it doesn't do anything. Update the idl2eth Python script to generate plugins with register routines. svn path=/trunk/; revision=13644
2005-03-05Preparations for dropping the old plugin api.Lars Roland2-15/+4
Introduce a new init routine for plugins, which does not take the plugin api table as an argument and allows etheral to distinguish between plugins using the old and the new api. Update README.plugins accordingly Change all g_warnings() in epan/plugins.c to report_failue(). On windows we do not have a log console open while loading the plugins, because a log console cannot be opened before the prefs have been read. Thus g_warnings() does not work for reporting problems with plugins. svn path=/trunk/; revision=13596
2005-02-14Make the "maintainer-clean" rules get rid of some additional generatedGuy Harris1-0/+2
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and GENERATED_FILES macros in Makefile.common files, along the lines of what wiretap/Makefile.common has. Clean up "*~" files with "make clean" rather than only "make distclean" in some additional places. Add "maintainer-clean" rules to the Makefile.nmake files, paralelling the ones in the automake-generated Makefile.in files, using the GENERATED_FILES macros from Makefile.common files. In some cases, move the cleanup of files from "make distclean" to "make maintainer-clean", and in other cases, put in a comment indicating why we're not doing that (because some files that are distributed in the source tarballs, namely Flex output, were built with a UN*X Flex and won't compile on Windows, so we get rid of them with "make distclean" so you can clean up stuff that *has* to be re-generated for Windows). Clean up some *CLEANFILES definitions - get rid of ones that no longer apply as files were moved or that add to the definition a name that's already there. svn path=/trunk/; revision=13402
2005-02-09Move the following files from /trunk to /trunk/epan:Lars Roland1-1/+1
asn1.[ch] follow.[ch] ptvcursor.[ch] reassemble.[ch] xmlstub.[ch] fix #include statements accordingly. svn path=/trunk/; revision=13366
2005-01-02Cast the values passed to the <ctype.h> macros so as to avoidGuy Harris1-2/+2
sign-extending 8-bit characters. svn path=/trunk/; revision=12922
2004-12-25a lot of warnings removed, most of them about pointer to int casts without ↵Ulf Lamping1-32/+32
using the appropriate GLib macros svn path=/trunk/; revision=12832
2004-10-01From Lars Roland: we need to define _NEED_VAR_IMPORT_ in plugins if weGuy Harris1-2/+2
link the plugins with libethereal, so do so. svn path=/trunk/; revision=12176
2004-09-29In "plugins/plugin_api.h", don't include stuff required for the pluginGuy Harris1-1/+1
address table if we don't need the plugin address table, so as to catch plugin dissectors that don't directly include stuff they need - eventually, the plugin address table stuff should completely go away, so we don't want dissectors depending on it. Fix those dissectors caught by this. Don't include "simple_dialog.h" in the ASN.1 dissector - it doesn't use it. svn path=/trunk/; revision=12140
2004-09-29From Lars Roland: add an option to link plugins with libethereal ratherGuy Harris1-2/+11
than using the plugin address table. svn path=/trunk/; revision=12139
2004-09-29Move various tables into the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12130
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-09-27Routines called by "g_node_traverse()" return a Boolean - FALSE toGuy Harris1-0/+1
continue traversing, TRUE to stop traversing - so make "free_node_data()" return FALSE. svn path=/trunk/; revision=12110
2004-09-19Preference strings don't remain null pointers for long - they getGuy Harris1-144/+185
converted to pointers to null strings (see prefs.c for an explanation). Initialize "current_asn1" to a mallocated null string. That lets us use "strcmp()" to compare asn1_filename and current_asn1. We already do that with asn1_pduname and current_pduname, so use "strcmp()" for them as well. Call "build_pdu_tree()" if we haven't yet built a PDU tree, even if the PDU type preference hasn't changed. Don't register with any of the ports unless we have a PDU tree, so we don't try to dissect with a null PDU tree pointer. Before constructing a PDU tree, if we already have a PDU tree, free it. When we free data_nodes, free the data attached to the nodes. Make a bunch of stuff static. svn path=/trunk/; revision=12045
2004-09-11Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;Guy Harris1-4/+4
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is. svn path=/trunk/; revision=11972
2004-08-26From Lars Roland: don't link with GTK+, as it's not necessary to do so,Guy Harris1-12/+2
and as plugin dissectors shouldn't be linked with GTK+ (so that they don't depend on Ethereal being built with a particular version of GTK+ - Ethereal is packaged for Windows in both GTK+ 1.3[.x] and 2.x versions - and so that they can work with Tethereal, which doesn't use GTK+). svn path=/trunk/; revision=11840
2004-08-08Map the old one-port "generic ASN.1" TCP/UDP/SCTP port-numberGuy Harris1-2/+4
preferences to the new multi-port ones, so that, instead of complaining when the old preferences were seen, we make the port be the one port in the new preference. Make the "message_win" "generic ASN.1" preference an obsolete preference, so we silently ignore it rather than complaining about it. svn path=/trunk/; revision=11623
2004-08-06From Albert Chin: rename resolv.{ch} to addr_resolv.{ch}, so that anGuy Harris1-1/+1
include of <resolv.h> in any system header file gets the system <resolv.h> (needed for builds on Tru64 with GTK+ 1.2[.x]). svn path=/trunk/; revision=11615
2004-07-31Change // to C90 style commentJörg Mayer1-3/+4
svn path=/trunk/; revision=11576
2004-07-30From Matthijs Melchior:Guy Harris1-76/+455
add SCTP support; allow more than one port number to be specified; add recovery from garbled or incomplete ASN.1 messages. svn path=/trunk/; revision=11572