Commit Graph

753 Commits

Author SHA1 Message Date
Gerald Combs 6a49671fa2 Make sure we use the "randpkt-" prefix everywhere.
svn path=/trunk/; revision=33468
2010-07-07 19:53:40 +00:00
Gerald Combs 3bc24f2d98 Try limiting our stack size.
svn path=/trunk/; revision=33466
2010-07-07 16:55:42 +00:00
Graeme Lunt 5aa05c8559 New "#.SYNTAX" section for the asn2wrs conformance file.
This allows syntaxes to be registered separately from PDUs.
Within the new section, the ASN.1 types to be used as syntaxes should be iterated. 
An optional second parameter on each line may be provided to provide an alternative name for the syntax (that the user will see). This name must be in double quotes.



svn path=/trunk/; revision=33370
2010-06-29 12:16:10 +00:00
Graeme Lunt 0d9ad5016e Remove the -R flag (used to generate syntax registrations) and replace with a
packet-<proto>-syn-reg.c output file. This is more generic and allows the 
syntax registrations to the directed from the template file.


svn path=/trunk/; revision=33342
2010-06-28 09:26:41 +00:00
Graeme Lunt 2e28eb7b5f New option (-r) to allow a prefix to be removed from type names.
Usage: asn2wrs.py -r prefix

This is used by x509sat where a prefix is used in type names to 
avoid conflicts with built-in types.


svn path=/trunk/; revision=33298
2010-06-23 11:00:46 +00:00
Bill Meier eb232c3954 Add a few deprecated GObject fcns;
Fix some typos and capitalization.

svn path=/trunk/; revision=33254
2010-06-18 22:17:43 +00:00
Bill Meier 459eb4eed7 Add deprecated from GLib 2.24
svn path=/trunk/; revision=33247
2010-06-17 18:12:46 +00:00
Bill Meier e636286b3c Add GTK deprecated from GTK 2.20.
svn path=/trunk/; revision=33246
2010-06-17 17:51:52 +00:00
Graeme Lunt a3300280f2 New option (-R) to asn2wrs to register the PDUs defined in the conformance file as BER syntaxes (register_ber_syntax_dissector()).
svn path=/trunk/; revision=33175
2010-06-09 09:27:28 +00:00
Jeff Morriss 0a7ced6eb4 Add BIN_DIR. If it is '.' then set WIRESHARK_RUN_FROM_BUILD_DIRECTORY so that we test plugins
svn path=/trunk/; revision=33093
2010-06-04 19:57:11 +00:00
Gerald Combs e5def72fe7 If BIN_DIR is ".", set WIRESHARK_RUN_FROM_BUILD_DIRECTORY so that we
test plugins.

svn path=/trunk/; revision=33085
2010-06-04 16:59:49 +00:00
Jeff Morriss 584595fab3 From Peter Harris via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4820 :
Mesa moved its API description file again.

Also, while I'm here, I noticed that they stopped using signed tags, so add
--tags to "git describe" for a better description of the mesa version used to
build the X11 dissector.

svn path=/trunk/; revision=33067
2010-06-03 02:05:52 +00:00
Guy Harris 347e7a0052 More <stdarg.h> cleanup; some are real bugs, some are just "don't do
va_start and va_end unless you're actually going to use the va_list"
(those bring the va_start and va_end closer to the use point, which
makes it a little more obvious that we're using <stdarg.h> correctly and
makes it a little harder to use it incorrectly).

svn path=/trunk/; revision=32963
2010-05-26 02:25:13 +00:00
Tomas Kukosa 2f0c4dde50 Support of value_string_ext in the asn2wrs using new directive #.USE_VALS_EXT
Example usage in NBAP

svn path=/trunk/; revision=32944
2010-05-25 09:07:12 +00:00
Jeff Morriss ca2a2b6298 Fix the value_string regexp so it doesn't match value_string_ext (which we don't have to check for NULL termination and the like)
svn path=/trunk/; revision=32937
2010-05-24 22:31:51 +00:00
Guy Harris 1b444c55fd Refer to the endianness arguments as "encoding" rather than
"representation" - we already use "representation" to refer to the text
representation of fields.

Change some routines with an endianness argument to make it a
representation argument instead; 

svn path=/trunk/; revision=32929
2010-05-24 06:06:17 +00:00
Jeff Morriss 734fb0725f Add a bunch of tools to the source distribution
svn path=/trunk/; revision=32847
2010-05-17 20:38:46 +00:00
Jeff Morriss 54082c6ed0 Add Cmake stuff to the source distribution so more people can try it out.
svn path=/trunk/; revision=32807
2010-05-14 16:27:03 +00:00
Tomas Kukosa 0611ae90a0 Support of AUTOMATIC tagging environment
(necessary for generating e.g. H.248 from original ASN.1 source)

svn path=/trunk/; revision=32782
2010-05-13 13:16:26 +00:00
Tomas Kukosa e32b9b9062 ASN.1 compiler accepts version brackets in SEQUENCE and CHOICE extensions
svn path=/trunk/; revision=32781
2010-05-13 10:00:37 +00:00
Guy Harris 998677339e Create a new REP_NA value for fields where there are no representations
from which to choose; use that for protocol fields in some protocols
(modify the CORBA generator to use it, and manually update the generated
CORBA dissectors accordingly).

svn path=/trunk/; revision=32777
2010-05-13 00:20:40 +00:00
Jeff Morriss a0c858efcd Add a little more code to avoid not-very-useful blurbs:
- Change spaces in the name to underscores before comparing it to the blurb.
  - Check if the type simply as T_ prepended to the name.
  - Don't put in a blurb of "NULL".

and regenerate the dissectors.

svn path=/trunk/; revision=32748
2010-05-11 03:53:31 +00:00
Tomas Kukosa 2de8a5f703 Add missing textify.sh to source distribution
svn path=/trunk/; revision=32732
2010-05-10 06:54:16 +00:00
Jeff Morriss e743c4e101 Try to avoid the user confusion reported in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3477 by not using blurbs
that look like abbreviations (filter strings).

While we're at it try to avoid giving blurbs that are identical (or nearly so)
to the field name.

Regenerate a couple of dissectors like this to prove out the idea.

svn path=/trunk/; revision=32673
2010-05-05 14:29:55 +00:00
Anders Broman fc0932168f Run deprecated-gtk-todoon all files in the gtk dir.
svn path=/trunk/; revision=32638
2010-05-02 21:42:53 +00:00
Bill Meier 412fc3d5c5 From Chris Maynard: Fix Bug #1292: "Win32: confusing setup target warning if cl.exe is not in path"
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1292

svn path=/trunk/; revision=32614
2010-04-30 20:15:27 +00:00
Jeff Morriss 2dc4b6ae91 Export MALLOC_CHECK_=3 when fuzz testing in case we're on a glibc-based system:
this value will cause glibc to do some memory allocation checking for us and
abort if it finds a problem.

(If we're not on a glibc-based system this will have no effect but should also
do no harm.)

(I think the buildbot already runs with this set but it's better for all of us
to have it set, too.)

svn path=/trunk/; revision=32528
2010-04-21 00:53:24 +00:00
Jeff Morriss ea25410415 From Peter Harris via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4481 :
The XKEYBOARD extension is a pain in the... so XCB had to grow new ways to
describe the protocol.

This patch adds support to the Wireshark dissector, so it can successfully
process the XCB description of the XKEYBOARD extension.

Without this patch, "make x11-dissector" chokes on the current xcbproto from
git.

Also update the script to deal with the new mesa directory structure.

svn path=/trunk/; revision=32520
2010-04-20 00:18:51 +00:00
Jeff Morriss c9b88696c9 Turn on memory scrubbing when fuzz testing.
svn path=/trunk/; revision=32487
2010-04-16 00:56:11 +00:00
Gerald Combs de742b8932 Fix the build.
svn path=/trunk/; revision=32442
2010-04-10 01:45:36 +00:00
Gerald Combs 6cd62e9e65 Rename README.win32 to README.windows and add a 64-bit download link.
Add tools/textify.sh, which makes a Notepad-clickable copy of a text
file. Use it for COPYING, NEWS, README, README.windows, and help/*.txt.

Remove tools/unix2dos.pl and use Cygwin's u2d instead.

svn path=/trunk/; revision=32440
2010-04-09 21:42:51 +00:00
Anders Broman 7cfa27b04b Get rid of a bunch of check_col().
svn path=/trunk/; revision=32388
2010-04-05 20:04:52 +00:00
Gerald Combs 12e2df52e1 Update c-ares to 1.7.1.
svn path=/trunk/; revision=32293
2010-03-26 18:36:27 +00:00
Bill Meier 2b75413d3a Set svn:executable property for some .py and .pl files
svn path=/trunk/; revision=32287
2010-03-25 22:22:45 +00:00
Bill Meier 316a01437f Add svn:eol-style native property
svn path=/trunk/; revision=32285
2010-03-25 20:59:08 +00:00
Bill Meier 264d162f8d (Minor): Improve an output message.
svn path=/trunk/; revision=32277
2010-03-25 18:50:31 +00:00
Guy Harris 19e2f43d79 Update the list of pidl files.
svn path=/trunk/; revision=32181
2010-03-13 19:38:19 +00:00
Jörg Mayer 8d5df4249e Update pidl directory to mirror current samba sources.
I hope we didn't have any local changes in there.

svn path=/trunk/; revision=32179
2010-03-13 10:48:18 +00:00
Balint Reczey eef2b5a361 Revert accidentally committed change
svn path=/trunk/; revision=32031
2010-02-27 13:24:42 +00:00
Balint Reczey 339131d835 Prevent potential crash in libsmi.
From: Vincent Bernat <bernat@debian.org>

svn path=/trunk/; revision=32006
2010-02-25 19:28:58 +00:00
Gerald Combs a5b39ae47a Use the latest GTK+ 2.16 bundle. For the Win32 build this means downgrading
from GTK+ 2.18. According to https://bugzilla.gnome.org/show_bug.cgi?id=598299
we should probably hold off on using 2.18 for a while.

svn path=/trunk/; revision=31992
2010-02-24 21:08:09 +00:00
Kovarththanan Rajaratnam 2bb18bac8b Point to the correct perl script in the autogenerated file + correct tabs
svn path=/trunk/; revision=31984
2010-02-24 12:28:04 +00:00
Guy Harris 7712d64f42 At least part of the problem is that Bash's test command appears not to
do short-circuit evaluation, so you can't do

	if [ {test 1} -a {test that's not safe if test1 is false} ]
	then
		...
	fi

so don't do that.

svn path=/trunk/; revision=31894
2010-02-16 01:08:07 +00:00
Guy Harris ebe8dc121e Close quote.
svn path=/trunk/; revision=31893
2010-02-16 00:41:06 +00:00
Guy Harris 915f1482db More debug crap.
svn path=/trunk/; revision=31892
2010-02-16 00:00:50 +00:00
Guy Harris 0023958937 More debugging - stripping out the newlines didn't suffice.
svn path=/trunk/; revision=31891
2010-02-15 23:47:05 +00:00
Guy Harris cc1e71a2ac The problem was that if you do, for example:
foo=`echo`

$foo won't be empty, it'll include the newline at the end of the output
of "echo".  The same applies for any other command; strip newlines from
the output of regtool to avoid that problem.

svn path=/trunk/; revision=31889
2010-02-15 23:26:43 +00:00
Guy Harris f3e871e659 Eh? It looks blank, but "-n" should catch that. Hopefully we have "od"
and that'll let us see the raw bytes.

svn path=/trunk/; revision=31888
2010-02-15 23:05:04 +00:00
Guy Harris e5fc4b7b4c Add a debugging printout. (What I found in the Intertubes seems to
indicate that ProxyEnabled is an integral value; if it's not a null
string, and if it's not an integral value, what is it?)

svn path=/trunk/; revision=31887
2010-02-15 22:48:51 +00:00
Guy Harris 2a5b733207 Protect against $proxy_enabled being empty.
svn path=/trunk/; revision=31886
2010-02-15 22:31:21 +00:00