Commit graph

2696 commits

Author SHA1 Message Date
Guy Harris
9e184d0a13 xxx_PROGRAMS variables have the name of the program without $(EXEEXT).
Update Gerald's address.

svn path=/trunk/; revision=19796
2006-11-04 20:37:16 +00:00
Jörg Mayer
24dbbfe608 Update from samba tree revision 19540 to 19553
============================ Samba log start ============
------------------------------------------------------------------------
r19541 | jelmer | 2006-11-03 20:55:17 +0100 (Fri, 03 Nov 2006) | 3 lines

Explicitly segfault when the API is being used incorrectly. Previously
this would've caused a silent premature return.

------------------------------------------------------------------------
r19544 | jelmer | 2006-11-04 00:08:33 +0100 (Sat, 04 Nov 2006) | 2 lines

Fix case of 'warning'.

------------------------------------------------------------------------
r19545 | jelmer | 2006-11-04 02:53:29 +0100 (Sat, 04 Nov 2006) | 2 lines

Allow enums as return types in code generated for wireshark. Originally based on a patch by Julien Kerihuel.

------------------------------------------------------------------------
r19546 | jelmer | 2006-11-04 03:51:03 +0100 (Sat, 04 Nov 2006) | 3 lines

fix number of bytes pushed when using switch_type() set to enum types.
die() on invalid used of enum_type_fn()

------------------------------------------------------------------------
r19547 | jelmer | 2006-11-04 03:54:24 +0100 (Sat, 04 Nov 2006) | 2 lines

Fix use of v1_enum on enums used in return types.

------------------------------------------------------------------------
r19553 | jelmer | 2006-11-04 16:40:05 +0100 (Sat, 04 Nov 2006) | 2 lines

Add check for correct API usage.

------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=19793
2006-11-04 16:57:21 +00:00
Jörg Mayer
875767f4cf Update from samba tree revision 18675 to 19540
============================ Samba log start ============
svn: When specifying working copy paths, only one target may be given
============================ Samba log end ==============


svn path=/trunk/; revision=19783
2006-11-03 15:10:17 +00:00
Michael Tüxen
c256574f2c Fixes ./autogen.sh on Mac OS X...
svn path=/trunk/; revision=19782
2006-11-03 10:12:36 +00:00
Jörg Mayer
63f00dfdc7 Robert Schwebel:
Fix for http://bugs.wireshark.org/bugzilla/attachment.cgi?id=419&action=view
  cross compilation fails

With the following change: Use only AC_CANONICAL_TARGET

From the autoconf manual:
     The user is encouraged to use either `AC_CANONICAL_BUILD', or
     `AC_CANONICAL_HOST', or `AC_CANONICAL_TARGET', depending on the
     needs.  Using `AC_CANONICAL_TARGET' is enough to run the two other
     macros.


svn path=/trunk/; revision=19753
2006-10-31 11:35:55 +00:00
Jörg Mayer
1069b24680 carsten.prescher@eads.com:
Fix for http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1114
@SHELL@ not replaced in idl2wrs

svn path=/trunk/; revision=19742
2006-10-30 18:17:10 +00:00
Anders Broman
0880bc54d0 Preparations for using the latest GTK 2.8 files for now only gettext is updated.
svn path=/trunk/; revision=19695
2006-10-26 07:25:07 +00:00
Tomas Kukosa
410830c4e3 Ply updated to version 2.1
svn path=/trunk/; revision=19459
2006-10-09 06:24:03 +00:00
Gerald Combs
0678c4f7c4 Update GNUTLS to 1.5.1. This includes an updated libgcrypt, which should
fix bug 1096.

Switch back to fetching a date-stamped URL in win32-setup.sh.  This
ensures backward compatibility with previous releases and non-updated
SVN trees.

svn path=/trunk/; revision=19339
2006-09-27 18:02:40 +00:00
Luis Ontanon
e13832cbe3 The forgotten files!
svn path=/trunk/; revision=19325
2006-09-26 03:36:31 +00:00
Gilbert Ramirez
b4b9ced31a Handle netscreen 5.3r4 snoop output, too.
This format adds "len=\d+" before the ":"

svn path=/trunk/; revision=19290
2006-09-22 18:51:25 +00:00
Jörg Mayer
c44ffcb327 Update from samba tree revision 18221 to 18675
============================ Samba log start ============
svn: When specifying working copy paths, only one target may be given
============================ Samba log end ==============


svn path=/trunk/; revision=19258
2006-09-19 15:29:38 +00:00
Ulf Lamping
32bc691d97 a proxy might also be specified using .wgetrc, so don't switch off the proxy explicitly
svn path=/trunk/; revision=19194
2006-09-11 22:37:46 +00:00
Jörg Mayer
45fb0d9d6c Update from samba tree revision 17666 to 18221
============================ Samba log start ============
svn: When specifying working copy paths, only one target may be given
============================ Samba log end ==============



svn path=/trunk/; revision=19171
2006-09-07 13:22:45 +00:00
Anders Broman
7eac3c2879 From Alejandro Vaquero:
- Change the "listen_rtp" to "rtp_player"
- Change from a plugin to be part of the core
- By default it will not compile with the rtp_player. In order to 
compile it is necessary to:
       + For windows: uncomment the line 
"PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1" in config.nmake
       + For linux: using the "--with-portaudio=yes"

svn path=/trunk/; revision=19094
2006-08-30 21:51:31 +00:00
Tomas Kukosa
55c73aa1d2 filed blurb changed to "proto.WrsType" variant
svn path=/trunk/; revision=18911
2006-08-15 13:24:00 +00:00
Tomas Kukosa
42f51129ff Ply updated to version 1.8
svn path=/trunk/; revision=18910
2006-08-15 13:14:43 +00:00
Jörg Mayer
1cd50fc199 Update from samba tree revision 16838 to 17541
============================ Samba log start ============
svn: When specifying working copy paths, only one target may be given
============================ Samba log end ==============


svn path=/trunk/; revision=18898
2006-08-14 21:24:00 +00:00
Gerald Combs
4f16b6b178 Point to the newest (1.5.0-1) GnuTLS package. Since it contains
libgcrypt, enable it in the Windows build.

In packet-ipsec.c:

  - Remove non-constants from variable declaration initializations.
  - Use ep_alloc() in a couple of places.
  - Fix an off-by-one error.
  - Reduce the number of SAs in the preferences from 4 to 2.  4 made the
    preferences window absolutely enormous.  This is probably the wrong
    way to fix this.
  - Fix up whitespace.

svn path=/trunk/; revision=18856
2006-08-09 02:00:05 +00:00
Gerald Combs
0213f60e4b Add GNUTLS to the Windows build.
In packet-ssl.c, move ssl_set_debug() up a bit so that we can debug key
file parsing.

svn path=/trunk/; revision=18850
2006-08-07 19:52:18 +00:00
Gerald Combs
87a7623f91 Point to the latest archive.
svn path=/trunk/; revision=18847
2006-08-07 14:47:52 +00:00
Jörg Mayer
a41982ca05 It's not only executable but a script as well: propset eol-style + keywords
svn path=/trunk/; revision=18837
2006-08-04 16:30:54 +00:00
Gerald Combs
35cac1cb36 Make the output file name a little more descriptive.
svn path=/trunk/; revision=18828
2006-08-02 21:19:56 +00:00
Gerald Combs
b380600ab9 Add a script for randpkt testing. Copied from fuzz-test.sh.
svn path=/trunk/; revision=18824
2006-08-02 18:59:29 +00:00
Anders Broman
903a75ff72 Update lempar to sqlittes version 1.18
http://www.sqlite.org/cvstrac/rlog?f=sqlite/tool/lempar.c

svn path=/trunk/; revision=18815
2006-08-01 21:29:05 +00:00
Tomas Kukosa
912cfcd1da PLY updated to version 1.7
svn path=/trunk/; revision=18797
2006-07-27 05:55:50 +00:00
Gerald Combs
68b631ac45 Switch to Net-SNMP 5.3.1.
svn path=/trunk/; revision=18744
2006-07-17 14:11:42 +00:00
Gerald Combs
84ab7189a3 Point to the latest repository directory.
svn path=/trunk/; revision=18682
2006-07-07 18:49:24 +00:00
Gerald Combs
6cda517c79 Update to Net-SNMP 5.3.0.1.
svn path=/trunk/; revision=18673
2006-07-06 19:52:48 +00:00
Jörg Mayer
a9924ae949 Update to current samba branch (sorry, lost the samba changelog)
while maintaining the Ethereal -> Wireshark changes.

svn path=/trunk/; revision=18655
2006-07-04 18:23:36 +00:00
Tomas Kukosa
c333c6b5bd few formal changes in PER dissector (rename asn_* types to asn1_* ones)
svn path=/trunk/; revision=18652
2006-07-04 06:49:53 +00:00
Tomas Kukosa
6ceb7937bc remove name field from per_sequence_t structure, it can be retrieved from field information
svn path=/trunk/; revision=18637
2006-07-03 07:03:57 +00:00
Tomas Kukosa
ba9d5cd625 fix wrong terminator record in per_sequence_t tables
svn path=/trunk/; revision=18621
2006-06-30 10:18:25 +00:00
Tomas Kukosa
9be9eb8e14 use "type function" instead of "field function" in PER CHOICE and SEQUENCE tables
it matches asn2wrs approach and makes generated dissectors source shorter

svn path=/trunk/; revision=18612
2006-06-29 15:26:41 +00:00
Gerald Combs
49a7d578c8 Use a more uniform name for the output files (which makes it easier to
write wrapper scripts).

svn path=/trunk/; revision=18577
2006-06-26 19:49:27 +00:00
Gerald Combs
d65312a960 Let the user set the working directory and number of passes from the command
line.  An upcoming Buildbot step will use these.

svn path=/trunk/; revision=18564
2006-06-23 20:39:51 +00:00
Tomas Kukosa
662f88f02e fix bug introduced with last change
svn path=/trunk/; revision=18545
2006-06-22 12:02:05 +00:00
Tomas Kukosa
98d7d92661 - change ETH_VAR to WS_VAR
- preparation for tagged type support

svn path=/trunk/; revision=18525
2006-06-20 19:54:28 +00:00
Gerald Combs
f7e38bd5e6 Change ETH_VAR_IMPORT to WS_VAR_IMPORT. Try to fix a duplicate variable
definition in the Catapult DCT2000 code.

svn path=/trunk/; revision=18524
2006-06-20 18:30:54 +00:00
Anders Broman
581dc56d63 MAke it possible to get a tvb with a BIT STRING, regenerate PER dissectors.
svn path=/trunk/; revision=18395
2006-06-08 06:06:17 +00:00
Gerald Combs
4ed6fc0bc3 Ethereal -> Wireshark
svn path=/trunk/; revision=18374
2006-06-06 23:27:21 +00:00
Tomas Kukosa
1f24a713be - packet-per.[ch]: Open Type support
- asn2wrs.py: TYPE-IDENTIFIER and ABSTRACT-SYNTAX information object classes support

svn path=/trunk/; revision=18338
2006-06-05 06:49:52 +00:00
Gerald Combs
6a14b9a383 Fix dist/distcheck.
svn path=/trunk/; revision=18302
2006-06-01 14:28:13 +00:00
Gerald Combs
eb71f7fb96 Rename the main executable to "wireshark", along with more conversions:
ethereal.com -> wireshark.org
  mailing lists and addresses
  ETHEREAL -> WIRESHARK
  Man pages
  Automake/Autoconf names


svn path=/trunk/; revision=18271
2006-05-31 19:12:15 +00:00
Gerald Combs
8958bab6de Tethereal/tethereal -> TShark/tshark.
svn path=/trunk/; revision=18268
2006-05-31 17:38:42 +00:00
Gerald Combs
b15974d094 libethereal -> libwireshark. idl2eth -> idl2wrs. There are a _lot_ of
changes here.  It compiles OK on OS X, but hasn't been tested anywhere else.

svn path=/trunk/; revision=18260
2006-05-31 00:23:01 +00:00
Anders Broman
6f12b0e36a Ethereal->Wireshark
svn path=/trunk/; revision=18243
2006-05-29 16:45:34 +00:00
Anders Broman
956cd76480 Ethereal->Wireshark
svn path=/trunk/; revision=18242
2006-05-29 16:44:25 +00:00
Anders Broman
7daa521bde Move to tools
svn path=/trunk/; revision=18241
2006-05-29 16:36:56 +00:00
Anders Broman
69faa687a9 Ethereal->Wireshark
svn path=/trunk/; revision=18240
2006-05-29 16:34:21 +00:00
Anders Broman
5e85b35506 Ethereal->Wireshark
svn path=/trunk/; revision=18239
2006-05-29 16:32:08 +00:00
Tomas Kukosa
4f6abb316a - new directive #.VIRTUAL_ASSGN - making assign from type of any filed
- new directive #.SET_TYPE - enforce type for field
- T_... name is based on renamed field (if present) instead of original one
- report unused #.FN_HDR, #.FN_BODY, #.FN_FTR
- new directive #.TF_RENAME - renames type and field together
(example of usage will follow in H225 and H245 dissectors)

svn path=/trunk/; revision=18237
2006-05-29 12:59:33 +00:00
Anders Broman
996d4db495 Ethereal->Wireshark
svn path=/trunk/; revision=18234
2006-05-28 19:49:07 +00:00
Anders Broman
5db0c85982 Move to tools
svn path=/trunk/; revision=18233
2006-05-28 17:23:23 +00:00
Tomas Kukosa
fbd2a3fe3e - fix bugs in dissect_per_octet_string() introduced with unaligned variant
- step to new ASN.1 API - pass asn_ctx_t* through PER dissectors instead of packet_info*
- PER ALIGNED/UNALIGNED flag moved to asn_ctx_t
- PER created tree item pointer moved to asn_ctx_t
- add nbap into PER dissectors in asn1/Makefile.nmake
- use add_oid_str_name() instead of register_ber_oid_name() in H.225 and H.245
- export asn_ctx_init from library
- PER dissectors regenerated

svn path=/trunk/; revision=18209
2006-05-22 11:49:50 +00:00
Ronnie Sahlberg
6075ec39fb ethereal->wireshark
svn path=/trunk/; revision=18207
2006-05-22 08:21:22 +00:00
Ronnie Sahlberg
f0b33a4789 ethereal->wireshark updates
svn path=/trunk/; revision=18206
2006-05-22 08:14:01 +00:00
Tomas Kukosa
4c4664721e bug fix, one space missing
svn path=/trunk/; revision=18204
2006-05-22 05:55:59 +00:00
Gerald Combs
4fa7a8c9b8 Update the Win32 libs URL.
svn path=/trunk/; revision=18200
2006-05-21 15:59:46 +00:00
Tomas Kukosa
62da958bd9 - asn2eth renamed to asn2wrs
- remove obsolete -X option from makefiles
- not generate enumerated map table for BER

dissector will be regenerated later

svn path=/trunk/; revision=18199
2006-05-21 14:36:05 +00:00
Tomas Kukosa
0554195573 - update to Wireshark
- prepare renaming asn2eth to asn2wrs

svn path=/trunk/; revision=18198
2006-05-21 08:48:00 +00:00
Ronnie Sahlberg
89f022b12b name change
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Guy Harris
7866389ea4 Put a newline at the end of plugin.c files.
svn path=/trunk/; revision=18185
2006-05-18 11:37:32 +00:00
Jörg Mayer
ee13215eb9 Add eol-style, update to current samba tree
svn path=/trunk/; revision=18171
2006-05-16 15:45:07 +00:00
Tomas Kukosa
71c5821e2e - support for dissect_per_enumerated()
- new option -u for unaligned PER, add per_aligment_type_callback() into PDU routines
- remove discerning between old and new PER/BER API, the new API will be reached step-by-step, i.e. -X command line option removed
- add support for intersection of constraints (only one level)
- #.MODULE is generated into <prot>-exp.cnf file
- fix bug when comment header was not generated into <prot>-exp.cnf file

svn path=/trunk/; revision=18155
2006-05-15 06:22:23 +00:00
Tomas Kukosa
64f3bb3095 - support for multiple ASN.1 modules in one input file
- support for multiple input files
- #.MODULE_IMPORT replaced with #.MODULE (#.MODULE_IMPORT is supported for backward compatibility)
- #.MODULE is used for just compiled modules too
- more debug outputs

svn path=/trunk/; revision=18111
2006-05-09 07:35:36 +00:00
Anders Broman
e965973f31 Handle UTCTime for PER.
svn path=/trunk/; revision=18075
2006-05-02 19:08:28 +00:00
Gilbert Ramirez
e3899ed4a4 Add infrastructure for display filter functions.
Add upper() and lower() display filter functions for string fields.

svn path=/trunk/; revision=18071
2006-05-02 14:26:17 +00:00
Tomas Kukosa
fe88a09c26 - fix Bug 890
- remove c2asn() which did not work exactly

svn path=/trunk/; revision=18023
2006-04-28 06:47:51 +00:00
Jörg Mayer
6b70d6d9f8 Update from samba tree revision 14805 to 15243
============================ Samba log start ============
svn: When specifying working copy paths, only one target may be given
============================ Samba log end ==============


svn path=/trunk/; revision=17994
2006-04-25 13:40:04 +00:00
Guy Harris
fd1cec8917 Rename "make-reg-dotc" to "make-dissector-reg", and do the same for the
Python versions, as it no longer makes only "register.c", it can also
make a "plugin.c" file for a plugin.

When making "plugin.c", there's no need to include "register.h", as it's
not defining any functions declared there.

svn path=/trunk/; revision=17919
2006-04-20 02:21:28 +00:00
Guy Harris
5dda395242 Fix bugs in the previous checkin.
svn path=/trunk/; revision=17905
2006-04-19 10:21:55 +00:00
Guy Harris
0c873b006a Update comments.
Fix the Makefile.nmake files to pass the output type argument to
make-reg-dotc or make-reg-dotc.py.

Make tools/make-reg-dotc executable.

svn path=/trunk/; revision=17904
2006-04-19 09:52:23 +00:00
Guy Harris
008d0d6c00 Have make-reg-dotc and make-reg-dotc.py generate either a register.c for
libetheral or a plugin.c for a plugin, rather than having plugin.c for a
dissector call the routines from register.c.  This means we don't ahve
multiple register_all_protocols() and register_all_protocol_handoffs()
routines, and that all the plugin boilerplate is automatically
generated.

svn path=/trunk/; revision=17903
2006-04-19 09:26:16 +00:00
Guy Harris
e7d75a821d Move "make-reg-dotc" and "make-reg-dotc.py" to the "tools" directory, so
that it can more easily be used when building plugins.

svn path=/trunk/; revision=17881
2006-04-17 00:41:54 +00:00
Gerald Combs
acebebcd61 Update Lua.
svn path=/trunk/; revision=17847
2006-04-12 20:36:31 +00:00
Jörg Mayer
9ba859bacf Update from samba tree revision 13374 to 14805
============================ Samba log start ============
svn: When specifying working copy paths, only one target may be given
============================ Samba log end ==============


svn path=/trunk/; revision=17767
2006-03-30 07:44:03 +00:00
Anders Broman
699146b353 Doc update from Sqlite
svn path=/trunk/; revision=17707
2006-03-23 17:01:51 +00:00
Guy Harris
ed351b85c1 Use "opt_func_string_t" so that we get some more type checking done.
Use safe_ versions of <ctype.h> macros, so we don't get hosed by
characters with the 8th bit set.

Define "tplt_linedir()" with a function prototype.

Constify some stuff to squelch compiler warnings.

svn path=/trunk/; revision=17694
2006-03-21 23:55:30 +00:00
Guy Harris
7a2997ff83 Make it a bit more like the SQLite lemon.c 1.36.
Get rid of some function pointer casting.

Get rid of an unused routine, and make some routines static.

Remove trailing white space.

svn path=/trunk/; revision=17693
2006-03-21 23:17:15 +00:00
Anders Broman
2d99b1a362 Mimmicing lemon.c 1.36 exactly for Symbolcmpp does not make MSVC completly happy, see what FC4 says.
svn path=/trunk/; revision=17692
2006-03-21 20:03:56 +00:00
Anders Broman
b5f2bdac77 Upadates to squlite:s lemon 1.36
svn path=/trunk/; revision=17691
2006-03-21 18:56:34 +00:00
Anders Broman
bc7e69cc09 Try again, this should take us to lemon version 1.16 http://www.sqlite.org/cvstrac/rlog?f=sqlite/tool/lemon.c
svn path=/trunk/; revision=17683
2006-03-20 19:40:09 +00:00
Anders Broman
17cee445d7 Back out the previous changes (:
svn path=/trunk/; revision=17680
2006-03-20 08:16:03 +00:00
Anders Broman
4edc146c8d Insert the code from sqlite http://www.sqlite.org/cvstrac/rlog?f=sqlite/tool/lemon.c:
2002-Mar-10 21:21    1.11    Check-in [425] : Bug fix: updates within a transaction would fail if there was existed a temporary table. By drh. (diff)  
2002-Mar-03 02:49    1.10    Check-in [411] : Bug fixes and additional tests for the subquery flattener. By drh. (diff)  

svn path=/trunk/; revision=17679
2006-03-20 06:41:08 +00:00
Anders Broman
5d20a3ba36 Sqlite lemon 1.8 ( 1.7 Make lemon 64-bit clean skipped) :
Bugfix Check-in [388] : Bug fix in lemon: 3-way conflicts (SHIFT/REDUCE/REDUCE) were not detected or resolved. This is now fixed. Also, table compression works a little better. By drh. (diff) 

http://www.sqlite.org/cvstrac/rlog?f=sqlite/tool/lemon.c 


svn path=/trunk/; revision=17668
2006-03-19 13:59:44 +00:00
Anders Broman
94d4d822da Align lemon/lempar.c with Squlite ver 1.2 http://www.sqlite.org/cvstrac/rlog?f=sqlite/tool/lempar.c
svn path=/trunk/; revision=17666
2006-03-19 08:54:00 +00:00
Anders Broman
4f48d73d90 Copy a bugfix from http://www.sqlite.org/cvstrac/tktview?tn=313
svn path=/trunk/; revision=17651
2006-03-16 22:18:15 +00:00
Luis Ontanon
943848cb02 Actually fix that leak!
svn path=/trunk/; revision=17540
2006-03-09 00:50:05 +00:00
Luis Ontanon
cdc088fb66 An unimportant and harmless one per run leak in a tool used for building... Coverity cannot evaluate that :P
run 14 CID 107


svn path=/trunk/; revision=17526
2006-03-08 10:58:09 +00:00
Anders Broman
0331204009 Undo the prevous unfortunate "rearrangement of code".
svn path=/trunk/; revision=17508
2006-03-07 20:24:11 +00:00
Anders Broman
7e8a72a218 Fix a bug reported by covierty and solved by http://www.sqlite.org/cvstrac/rlog?f=sqlite/tool/lemon.c
Rearrange the code a bit to make it easier to make a diff with the sqlite version of lemon.

svn path=/trunk/; revision=17502
2006-03-07 18:18:04 +00:00
Gerald Combs
050525cfb5 Add Lua support by default for Win32. Fix some compilation problems.
Add Lua information to the version paragraph.

svn path=/trunk/; revision=17440
2006-03-01 21:31:07 +00:00
Ulf Lamping
4648592a43 add a possible solution (add another package using cygwin) if a tool wasn't found.
svn path=/trunk/; revision=17413
2006-02-26 18:21:50 +00:00
Jörg Mayer
a5c03f490e Mike Duigou:
I noticed that when you run fuzz testing from both a root account and
a user account you can run into problems because the user account tries
to use and delete temp files created by the root account and fails. This
patch uses the same scheme as used for fuzz error files for naming the
tampered file and for the error file to prevent filename/permission
collisions between temp files from different runs.


svn path=/trunk/; revision=17145
2006-02-03 09:29:54 +00:00
Jörg Mayer
1b47d72350 Update from samba tree revision 12761 to 12961
============================ Samba log start ============
------------------------------------------------------------------------
r12776 | metze | 2006-01-08 21:20:18 +0100 (Sun, 08 Jan 2006) | 3 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/tests/Util.pm

use $ENV{TEST_DATA_PREFIX} for test files if available

metze
------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=17039
2006-01-16 16:31:54 +00:00
Jörg Mayer
1cd8e8ca0c Reminder to clean up in case of ctrl-c etc
svn path=/trunk/; revision=16954
2006-01-05 12:43:35 +00:00
Guy Harris
9347bd2df6 That's "PIDL_FILES", not "PIDLFILES".
svn path=/trunk/; revision=16930
2006-01-02 10:37:52 +00:00
Jörg Mayer
05bf77a243 - Move pidl files into PIDL_FILES and include this info EXTRA_DIST.
- Sort files alphabetically.

svn path=/trunk/; revision=16929
2006-01-02 00:43:28 +00:00
Jörg Mayer
43189459e8 Forgot to commit Makefile.am with the samba changes
svn path=/trunk/; revision=16928
2006-01-01 23:50:47 +00:00
Jörg Mayer
6cbffe23a9 Update from samba tree revision 12488 to 12669
============================ Samba log start ============
------------------------------------------------------------------------
r12488 | jelmer | 2005-12-26 02:37:18 +0100 (Mon, 26 Dec 2005) | 2 lines

Fix MANIFEST to match recent changes

------------------------------------------------------------------------
r12490 | jelmer | 2005-12-26 03:14:18 +0100 (Mon, 26 Dec 2005) | 2 lines

Fix --warn-compat

------------------------------------------------------------------------
r12501 | jelmer | 2005-12-26 23:47:40 +0100 (Mon, 26 Dec 2005) | 4 lines

Merge EJSHeader.pm into EJS.pm and simplify smbcalls_rpc.c a bit,
now that it is guaranteed that the smbcalls modules are always
initialized
after the EJS subsystem itself.

------------------------------------------------------------------------
r12512 | jelmer | 2005-12-27 17:22:35 +0100 (Tue, 27 Dec 2005) | 3 lines

Use GUID structs in API functions everywhere rather then converting back
and
forth between GUID structs and strings in several places.

------------------------------------------------------------------------
r12515 | jelmer | 2005-12-27 18:50:53 +0100 (Tue, 27 Dec 2005) | 2 lines

Use UUID directly rather then string containing UUID

------------------------------------------------------------------------
r12517 | jelmer | 2005-12-27 20:13:18 +0100 (Tue, 27 Dec 2005) | 2 lines

Don't generate empty init functions

------------------------------------------------------------------------
r12528 | jelmer | 2005-12-27 23:51:30 +0100 (Tue, 27 Dec 2005) | 2 lines

Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.

------------------------------------------------------------------------
r12539 | metze | 2005-12-28 10:31:43 +0100 (Wed, 28 Dec 2005) | 3 lines

fix the pidl tests

metze
------------------------------------------------------------------------
r12572 | jelmer | 2005-12-29 17:03:03 +0100 (Thu, 29 Dec 2005) | 2 lines

No longer parse coclasses as interfaces

------------------------------------------------------------------------
r12573 | jelmer | 2005-12-29 17:03:47 +0100 (Thu, 29 Dec 2005) | 2 lines

Update README to recent changes in pidls namespace

------------------------------------------------------------------------
r12574 | jelmer | 2005-12-29 17:04:34 +0100 (Thu, 29 Dec 2005) | 3 lines

Bring tables.pl back to life and move registration of interfaces
now completely to a new subsystem.

------------------------------------------------------------------------
r12651 | jelmer | 2005-12-31 15:57:43 +0100 (Sat, 31 Dec 2005) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0/source/librpc/idl/idl_types.h
   M /branches/SAMBA_4_0/source/librpc/ndr/libndr.h
   M /branches/SAMBA_4_0/source/librpc/ndr/ndr_string.c

Remove STR_LARGE_SIZE as it's no longer used

------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=16927
2006-01-01 23:14:44 +00:00
Gerald Combs
306fbc3fdb Update to Net-SNMP 5.2.2.
svn path=/trunk/; revision=16907
2005-12-27 18:33:58 +00:00
Jörg Mayer
7b195acb54 Update from samba tree revision 12487 to 12488
============================ Samba log start ============
------------------------------------------------------------------------
r12488 | jelmer | 2005-12-26 02:37:18 +0100 (Mon, 26 Dec 2005) | 2 lines

Fix MANIFEST to match recent changes

------------------------------------------------------------------------
============================ Samba log end ==============

Update Makefile.am accordingly

svn path=/trunk/; revision=16899
2005-12-26 01:42:44 +00:00
Jörg Mayer
3f66462306 Found by buildbot:
Update MANIFEST to fix a bug in the samba tree.

svn path=/trunk/; revision=16898
2005-12-26 01:20:38 +00:00
Jörg Mayer
2eb39a1bdc Update from samba tree revision 12430 to 12487
============================ Samba log start ============
------------------------------------------------------------------------
r12462 | jelmer | 2005-12-24 22:57:51 +0100 (Sat, 24 Dec 2005) | 2 lines

Hide oo magic from callers of the parser

------------------------------------------------------------------------
r12463 | jelmer | 2005-12-24 23:11:44 +0100 (Sat, 24 Dec 2005) | 2 lines

Rename 'Samba' namespace to 'Samba4'

------------------------------------------------------------------------
r12464 | jelmer | 2005-12-25 00:32:50 +0100 (Sun, 25 Dec 2005) | 4 lines

Add simple IDL parsing tests for pidl using the standard perl
testing framework (Test::Simple, distributed with perl itself).
Run these tests from 'make test'

------------------------------------------------------------------------
r12465 | jelmer | 2005-12-25 02:33:35 +0100 (Sun, 25 Dec 2005) | 3 lines

Merge Parse::Pidl::Samba4::NDR::Header into
Parse::Pidl::Samba4::NDR::Parser.
Small optimization to avoid including NDR headers multiple times

------------------------------------------------------------------------
r12470 | jelmer | 2005-12-25 04:04:13 +0100 (Sun, 25 Dec 2005) | 3 lines

Add helper module for pidl tests
Convert other pidl tests to use Test::More and run them from 'make test'

------------------------------------------------------------------------
r12480 | jelmer | 2005-12-25 15:11:59 +0100 (Sun, 25 Dec 2005) | 2 lines

Extend testsuite

------------------------------------------------------------------------
r12481 | jelmer | 2005-12-25 15:59:21 +0100 (Sun, 25 Dec 2005) | 4 lines

Move parser-specific utility functions to idl.yp, remove some unused
functions
Allow the use of non-typedef structs and unions when declaring
variables. Allow the
use of the 'signed' and 'unsigned' qualifiers for integer types

------------------------------------------------------------------------
r12482 | jelmer | 2005-12-25 15:59:39 +0100 (Sun, 25 Dec 2005) | 2 lines

Add some more tests

------------------------------------------------------------------------
r12483 | jelmer | 2005-12-25 16:19:55 +0100 (Sun, 25 Dec 2005) | 2 lines

Remove --tdr-header option (merged into --tdr-parser)

------------------------------------------------------------------------
r12484 | jelmer | 2005-12-25 18:12:52 +0100 (Sun, 25 Dec 2005) | 2 lines

Initial work on supporting non-typedeffed types

------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=16896
2005-12-26 00:47:24 +00:00
Jörg Mayer
b7d11ac06c Update from samba tree revision 12205 to 12325
============================ Samba log start ============
------------------------------------------------------------------------
r12205 | jelmer | 2005-12-13 02:56:04 +0100 (Tue, 13 Dec 2005) | 2 lines

Support 'TFS' command in conformance files

------------------------------------------------------------------------
r12206 | jelmer | 2005-12-13 14:14:23 +0100 (Tue, 13 Dec 2005) | 2 lines

Fix some issues in NOEMIT

------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=16851
2005-12-18 22:40:49 +00:00
Gerald Combs
253b96e81f Add support for GLib/GTK+ 2.8. Point to the latest tag.
svn path=/trunk/; revision=16802
2005-12-14 21:19:39 +00:00
Jörg Mayer
f6b5a5d924 Update from samba tree revision 12185 to 12205
============================ Samba log start ============
------------------------------------------------------------------------
r12205 | jelmer | 2005-12-13 02:56:04 +0100 (Tue, 13 Dec 2005) | 2 lines

Support 'TFS' command in conformance files

------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=16776
2005-12-13 09:30:09 +00:00
Gerald Combs
6b376c9c0e asn2eth.py:
Catch a TypeError that gets thrown if we don't use any conversion
specifiers during string formatting.

H.248:

Don't dereference a null pointer.  Fixes bug 626.

svn path=/trunk/; revision=16773
2005-12-13 03:48:26 +00:00
Guy Harris
46cbfd576a The Bitmap routine in lib/Parse/Pidl/Ethereal/NDR.pm in Pidl generates
fields as BASE_DEC; bitmaps are typically displayed in hex in Ethereal,
so it should generate BASE_HEX instead.  (Submitted to
bugzilla.samba.org as bug 3313.)

A couple of the IDL files use "unistr"; define it as "[string] uint16",
so that the resulting dissectors work correctly.

Regenerate dissectors.

svn path=/trunk/; revision=16754
2005-12-10 22:42:19 +00:00
Jörg Mayer
c2eaf1bc74 Fix ...$ to : $
svn path=/trunk/; revision=16750
2005-12-09 16:51:56 +00:00
Jörg Mayer
d3970d3674 Update to samba svn revision 12055:
========== Samba changelog start ========================
r11959 | jelmer | 2005-11-29 14:54:51 +0100 (Tue, 29 Nov 2005) | 2 lines

Use DOS_errors array for displaying WERROR values

------------------------------------------------------------------------
r11972 | metze | 2005-11-30 13:40:26 +0100 (Wed, 30 Nov 2005) | 3 lines

handle [noejs] property also on functions

metze
------------------------------------------------------------------------
r11974 | metze | 2005-11-30 18:07:02 +0100 (Wed, 30 Nov 2005) | 3 lines

only look at $pl->{POINTER_TYPE} when $pl is defined

metze
------------------------------------------------------------------------
r11997 | metze | 2005-12-01 13:39:33 +0100 (Thu, 01 Dec 2005) | 14 lines

for multidimentional array like this:
uint32 [num_level2][num_level1][num_level0]

fix the order they're pushed and pulled, it should be like this

for (l2=0; l2 < num_level2; l2++) {
        for (l1=0; l1 < num_level1; l1++) {
                for (l0=0; l0 < num_level0; l0++) {
                        ndr_pull_uint32(...);
                }
        }
}

metze
========== Samba changelog end ========================


svn path=/trunk/; revision=16673
2005-12-04 08:48:38 +00:00
Luis Ontanon
976804af94 Add #line directives to the genertated dissector.
Now the compiler knows where a line comes from and errors point to the .cnf or -template.[ch] file instead of the generated code.


svn path=/trunk/; revision=16654
2005-12-02 17:49:47 +00:00
Tomas Kukosa
dcae7d303f new field type FT_OID for OBJECT IDENTIFIERs
svn path=/trunk/; revision=16652
2005-12-02 13:16:58 +00:00
Tomas Kukosa
97584210fb improvements in value constraint support
- NO_BOUND is defined instead of usage -1
- negative bound is handled properly for INTEGER

svn path=/trunk/; revision=16505
2005-11-14 13:05:17 +00:00
Jörg Mayer
e5176d9a93 Update to samba 11691:
------------------------------------------------------------------------
r11535 | jelmer | 2005-11-06 14:53:37 +0100 (Sun, 06 Nov 2005) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba/Template.pm

Support void functions when generating templates.

------------------------------------------------------------------------
r11539 | jelmer | 2005-11-06 15:31:01 +0100 (Sun, 06 Nov 2005) | 4 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/TODO
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba/NDR/Header.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba/NDR/Server.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba/Template.pm

Fix indentation in templates. Always generate lower-case
UUID strings as GUID_from_string seems to have trouble with
uppercased ones.

------------------------------------------------------------------------


svn path=/trunk/; revision=16479
2005-11-12 00:42:03 +00:00
Jörg Mayer
65528c765a Update to samba svn 11484
svn path=/trunk/; revision=16388
2005-11-03 15:23:09 +00:00
Anders Broman
314c36da9a From Graeme Lunt:
The ftbp.patch file includes:
a) A fix to acse.cnf which works around an asn2eth bug (it is the AE-qualifier EXPORT I want, but asn2eth doesn't generate the appropriate extern for the values). Also a small cosmetic change for EXTERNAL decodings.
b) New EXPORTs for the FTAM dissector for use in FTBP.
c) A fix to asn2eth to solve the problem if you EXPORT types that include a '-' character in the name (e.g. "AE-qualifier" from acse.cnf, "Date-and-Time-Attribute" from ftam.cnf). The problem is that asn2eth generates the "xxxx-exp.cnf" file using the 'C' name (which has replaced '-' with '_') rather than the original 'ASN' name. The fix just undoes the replacement as I couldn't see the original name being preserved anywhere. There still remains a problem if the type has a '.' in the name - but generally I don't think they do.

* Better ROS handling and registration
* Simplified RTSE registration
* X411 column information, extension naming and use of new RTSE/ROS registration
* X420 notification extensions, warnings removal and export of ExtensionsField (missed from recent FTBP patch).
* Better highlighting of S4406 protocol.


svn path=/trunk/; revision=16296
2005-10-24 21:42:19 +00:00
Jörg Mayer
71df36b814 Update from samba tree
svn path=/trunk/; revision=16264
2005-10-18 14:59:30 +00:00
Gerald Combs
25d75e66a7 Set ETHEREAL_ABORT_ON_DISSECTOR_BUG. Make sure we create a core file. Fix
up file names and extensions.

svn path=/trunk/; revision=16190
2005-10-11 15:17:06 +00:00
Anders Broman
3f7ed7c2a2 Fix problems with bitstring:
- dissect_per_bitstring needs to know if extention exists or not.
- Fixes for bitstring sizes up to 16 ( where max = min ).

svn path=/trunk/; revision=16181
2005-10-10 20:38:28 +00:00
Jörg Mayer
9c38623b5a Sync with samba tree
svn path=/trunk/; revision=16152
2005-10-07 07:50:59 +00:00
Luis Ontanon
154d8ae087 one step further...
TPG now uses the ignore feature of tvbparse
 named sub_rules can have cardinality

epan/tvbparse.c:
   do not crash on zero cardinality


svn path=/trunk/; revision=16065
2005-10-01 15:19:36 +00:00
Luis Ontanon
aef8dd5c4c Some changes in tpg's grammar to avoid constructing elements that cannot be dereferenced
svn path=/trunk/; revision=16062
2005-10-01 10:39:38 +00:00
Luis Ontanon
2b57849529 another step closer
svn path=/trunk/; revision=16052
2005-09-29 19:56:21 +00:00
Jörg Mayer
16bd74ab0c In case the paths to the tools are wrong, inform the
user about it instead of complaining that no capture files
could be found.


svn path=/trunk/; revision=16037
2005-09-28 08:14:54 +00:00
Luis Ontanon
217b73a0b1 update tpg
tvbparse:
     - for tvbparse_until spend the target token even if it isn't included


svn path=/trunk/; revision=16032
2005-09-28 01:06:39 +00:00
Luis Ontanon
230c36d360 now it starts to work...
svn path=/trunk/; revision=16028
2005-09-27 21:54:45 +00:00
Luis Ontanon
72cbc6410b TPG TVB Parser Generator
Given a bnf-like grammar generate a set of helpers for a dissector

It's not working yet, however I need this checkin as a cheeckpoint

(I'll write the doc when it starts to be ready)


svn path=/trunk/; revision=16021
2005-09-27 20:48:48 +00:00
Jörg Mayer
d902c856e3 Add MANIFEST
svn path=/trunk/; revision=15984
2005-09-23 21:27:03 +00:00
Ulf Lamping
e6f26721f4 replace WinPcap devel pack 3.0 with current 3.1 version
svn path=/trunk/; revision=15972
2005-09-22 23:18:34 +00:00
Gerald Combs
0e48360f73 Remove pidl.1.xml from the distribution.
svn path=/trunk/; revision=15971
2005-09-22 22:00:06 +00:00
Jörg Mayer
c64775e754 Update from samba + new file MANIFEST
svn path=/trunk/; revision=15955
2005-09-22 09:13:33 +00:00
Jörg Mayer
4932a656cf pidl.1.xml doesn't exist any more in this form. It's now integrated
into pidl itself. So remove the file again and also the reference to
the file in tools/Makefile.am

svn path=/trunk/; revision=15944
2005-09-21 22:41:47 +00:00
Gerald Combs
ece40ca87b Add the "test" directory and man page to pidl. This should hopefully
fix the current distcheck and RPM build failures.

svn path=/trunk/; revision=15933
2005-09-21 16:06:59 +00:00
Jörg Mayer
9e3f582c04 Sync with samba: Update to fix manpage handling
svn path=/trunk/; revision=15924
2005-09-21 09:40:45 +00:00
Jörg Mayer
44a3e93524 Add the pidl files.
svn path=/trunk/; revision=15896
2005-09-20 15:08:14 +00:00
Tomas Kukosa
d3492e684a asn2eth
- #.FN_BODY accepts parameters too
 - single line variant of #.FN_PAR is possible
 - new parameter FN_VARIANT for OBJECT IDENTIFIER
packet-per.c
 - dissect_per_object_identifier() returns value as tvb
 - new dissect_per_object_identifier_str() function
PER dissectors adapted and regenerated

svn path=/trunk/; revision=15894
2005-09-20 10:56:08 +00:00
Jörg Mayer
44a4fd449c Revert back to local copy: The samba svn server does not support svn
over http - this was a much requested feature for Ethereals svn server.

svn path=/trunk/; revision=15882
2005-09-19 23:31:47 +00:00
Jörg Mayer
dfaf9f9310 Change pidl to svn:externals
svn path=/trunk/; revision=15866
2005-09-19 14:50:23 +00:00
Tomas Kukosa
ee8d53adf5 remove unused parameter 'name' from dissect_per_choice()
svn path=/trunk/; revision=15861
2005-09-19 07:35:05 +00:00
Jörg Mayer
33097899f8 Small update
svn path=/trunk/; revision=15860
2005-09-18 21:58:39 +00:00
Jörg Mayer
f1bd7620a3 Update README.ethereal and sync with current samba tree
svn path=/trunk/; revision=15859
2005-09-18 21:57:59 +00:00
Jörg Mayer
fdc91d7e24 Add a local copy of pidl, add a README.ethereal to include
minimalistic building and usage instructions.


svn path=/trunk/; revision=15836
2005-09-16 09:31:05 +00:00
Gerald Combs
4ba88078f9 Move to the latest ethereal-win32-libs tag.
svn path=/trunk/; revision=15706
2005-09-06 19:48:57 +00:00
Tomas Kukosa
1d6439aa7d - OID names table extended
- NAME and ABBREV attributes can be used in #.FIELD_ATTR
- following constraint format is supported (1..10, ..., 11..MAX)

svn path=/trunk/; revision=15634
2005-08-31 14:32:29 +00:00
Anders Broman
bc3830f63d Fix a typo 'BER_UNI_TAG_TeletexString'
svn path=/trunk/; revision=15613
2005-08-29 16:51:58 +00:00
Jörg Mayer
344fc629fc Add a tool to check the hf_ values.
svn path=/trunk/; revision=15611
2005-08-29 14:15:32 +00:00
Tomas Kukosa
ec979a97fb - dissect_per_restricted_character_string() returns value in tvbbuff_t instead of char
- asn2eth:
  fixed CHOICE tag handling
  #.FN_PARS support for BIT STRING and all string types
  intersection of SIZE and FROM constraints for string is handled
- new asn2eth features used in h225 and h245
- PER dissectors regeneration

svn path=/trunk/; revision=15408
2005-08-18 14:32:49 +00:00
Jörg Mayer
cee545d958 Albert Chin:
"config.h" should always be included first. However, lemon
        includes <stdio.h> first.


svn path=/trunk/; revision=15208
2005-08-04 20:41:52 +00:00
Jörg Mayer
c17d44e122 Fix svn properties where needed:
Remove svn:executable
         Add svn:executable
         Add svn:eol-style
         Add svn:keywords


svn path=/trunk/; revision=15182
2005-08-02 05:58:15 +00:00
Jörg Mayer
5e83d1e015 Fix more "no previous declaration" warnings
svn path=/trunk/; revision=15172
2005-08-02 04:35:40 +00:00
Tomas Kukosa
49a0d4f697 - fix name handling of imported types
- #.FN_PARS implemented for TypeRef, SET, SEQUENCE, CHOICE

svn path=/trunk/; revision=15161
2005-08-01 08:40:13 +00:00
Anders Broman
40c841279f rom Maynard, Chris :
The attached patches, generated via  svn diff , correct various compiler 

& lint warnings, among them: 

 

lemon.c(2582) : warning C4090: '=' : different 'const' qualifiers


svn path=/trunk/; revision=15086
2005-07-26 09:52:50 +00:00
Ulf Lamping
9eedc98db7 Update to zlib 1.2.3
svn path=/trunk/; revision=15040
2005-07-24 14:16:54 +00:00
Jörg Mayer
30a8557868 More 'char*' -> 'const char*' changes to fix warnings.
svn path=/trunk/; revision=15015
2005-07-23 11:41:25 +00:00
Jörg Mayer
e1c6d9ac3d Fix some warnings (and one of my previous 'fixes')
svn path=/trunk/; revision=14997
2005-07-22 17:57:40 +00:00
Jörg Mayer
f67b00ad9a More 'char*' -> 'const char*' warning fixes
svn path=/trunk/; revision=14986
2005-07-22 07:55:51 +00:00
Ronnie Sahlberg
0ca30abe65 change the symbol dissect_ber_CHOICE back into dissect_ber_choice
svn path=/trunk/; revision=14980
2005-07-21 21:12:09 +00:00
Tomas Kukosa
aa6a15ebde PLY package updated to version 1.6
svn path=/trunk/; revision=14951
2005-07-18 20:45:46 +00:00
Gerald Combs
e1c7558d93 Point to the latest Windows library tag and versions.
svn path=/trunk/; revision=14923
2005-07-15 20:50:34 +00:00
Tomas Kukosa
1374231148 - PER helper functions for SET/SEQUENCE OF dissection were changed to have prototype similar to BER (per_sequence_t is used as parameter)
- asn2eth was updated to support new PER helper functions for SET/SEQUENCE OF
- #.FN_PARS implemented for SET/SEQUENCE OF and REAL
- PER SET/SEQUENCE OF field can be FT_UINTxx to display number of items
- PER dissectors regenerated

svn path=/trunk/; revision=14921
2005-07-15 15:20:40 +00:00
Jörg Mayer
5b442f2279 After doing "make maintainer-clean", "svn status --no-ignore | grep ^I"
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-07-10 08:04:27 +00:00
Gerald Combs
5b7df3128b Make sure "which" is present before we verify our tools. Add "env" to
the list of programs to check.  Make sure our python scripts start with
"#!/usr/bin/env python" as recommended at

  http://www.python.org/doc/faq/library.html#how-do-i-make-a-python-script-executable-on-unix

svn path=/trunk/; revision=14871
2005-07-07 21:26:09 +00:00
Guy Harris
2b086353a4 Fix a spelling error.
svn path=/trunk/; revision=14865
2005-07-06 23:55:19 +00:00
Tomas Kukosa
3f36906e3a - #.FN_PARS implemented for BOOLEAN
- user defined body #.FN_BODY can be combined with default body using DEFAULT_BODY parameter (see e.g. H.225)

svn path=/trunk/; revision=14863
2005-07-06 16:15:12 +00:00
Tomas Kukosa
ed7d638053 new directives #.PDU_NEW and #.REGISTER_NEW creating and registering PDU dissectors with new_dissector_t prototype
svn path=/trunk/; revision=14860
2005-07-05 21:42:13 +00:00
Tomas Kukosa
648c7863cd - #.FN_PARS support for ENUMERATED type
- cleanup unused parameters for some methods

svn path=/trunk/; revision=14856
2005-07-05 19:47:04 +00:00
Tomas Kukosa
5f2fd433ab - use tvb instead of offset and length in dissect_per_octet_string() for value returning
- asn2eth: #.FN_PARS support for OCTET STRING
- usage of #.FN_PARS in h225 and h245
- h225: ParallelH245Control support
- h245: better support of NonStandardParameter
- usage of MAX_OID_STR_LEN constant
- all PER dissectors regenerated

svn path=/trunk/; revision=14844
2005-07-04 09:35:25 +00:00
Tomas Kukosa
f9d6448624 fix for BER string tags
svn path=/trunk/; revision=14800
2005-06-27 13:45:47 +00:00
Ronnie Sahlberg
3a51ba4293 make dissect_ber_choice take a guint* that will return the
index of the branch taken or -1  to make prettifications easier to implement.


change the signature of dissect_ber_choice and rename it to dissect_ber_CHOICE to catch all
occurences of the use of this function

update asn2eth to use the new name/signature

update all occurences of this function to the new name and new signature.



svn path=/trunk/; revision=14758
2005-06-26 05:48:50 +00:00
Gerald Combs
b94621701c From Steve Grubb:
Fix bounds checking in lemon.c.  Fix up an if/else block in
packet-dcerpc-samr.c.  Fix hex printing in packet-gtp.c.


Fix other problems discovered by Steve:

Fix a bounds check in packet-isis-lsp.c.  Also, fix netmask printing
on non-little-endian machines.  Add a comment about adding a netmask
routine to to_str.c.  Add bounds checks to packet-ncp2222.inc.


All of these apply to bug 217.

svn path=/trunk/; revision=14627
2005-06-14 18:18:05 +00:00
Ulf Lamping
53ace04fe1 fix a problem if the tools have a space char in their path
svn path=/trunk/; revision=14588
2005-06-08 06:40:17 +00:00
Ulf Lamping
a30f4fb400 add some general and some cygwin related comments
svn path=/trunk/; revision=14587
2005-06-08 06:33:49 +00:00
Tomas Kukosa
a9cecadc53 - usage of dissect_per_null() and dissect_ber_null()
- new #.FN_PARS directive (implemented only for OCTET STRING and INTEGER now)
- set true value strings for named bits

svn path=/trunk/; revision=14575
2005-06-07 11:58:22 +00:00
Gilbert Ramirez
c2454f0260 Add a "-G fields3" report which prints the bitmask of the field, and avoids
printing the blurb twice, like fields2 does.
Add a script, fsanity.py, to check sanity of FT definitions. Right now the
only check is for bitmasks for integer-like fields.

svn path=/trunk/; revision=14454
2005-05-27 15:13:09 +00:00
Gilbert Ramirez
0e80461b68 Add get_items_before(), to help analyze in the presence of
tunneled protocols.

svn path=/trunk/; revision=14380
2005-05-17 01:47:04 +00:00
Gilbert Ramirez
d3cd8d93e8 Add get_hide() to return the value of the "hide" tag
in field attributes.

svn path=/trunk/; revision=14379
2005-05-16 23:21:01 +00:00
Anders Broman
acdaec7d25 Forgott the lex.py file
svn path=/trunk/; revision=14360
2005-05-13 05:50:26 +00:00
Anders Broman
746eefbaf5 Add the asn2eth related files to extra-dist (I hope this is the right thing to do to get them into the SVN tarballs).
svn path=/trunk/; revision=14359
2005-05-13 05:47:56 +00:00
Gerald Combs
103103e21c Fix a quoting bug.
svn path=/trunk/; revision=14177
2005-04-24 00:37:08 +00:00
Gerald Combs
ec5ec3768e Allow the locations of tethereal, editcap, and capinfos to be changed.
Limit the amount of VM the process can use (default 500 MB).  If we
can't save a capture in libpcap format, try again with the encapsulation
type set to "ether".

svn path=/trunk/; revision=14156
2005-04-20 21:00:03 +00:00
Tomas Kukosa
2d40f0464b - fix handling SET/SEQUENCE OF Type if type name contains hyphen
- raise warning if type is not renamed to name with the first letter uppercase
- raise warning if field is not renamed to name with the first letter lowercase

svn path=/trunk/; revision=14147
2005-04-20 12:39:34 +00:00
Gerald Combs
cb95a1d842 Add fuzz-test.sh to the distribution.
svn path=/trunk/; revision=14126
2005-04-18 13:47:20 +00:00
Gerald Combs
e39e982856 Add a description and usage message. Handle invalid capture files.
svn path=/trunk/; revision=14114
2005-04-17 18:55:42 +00:00
Gerald Combs
210225e22d Add a script based on the "menagerie-fuzz" buildbot test. Running
"./tools/fuzz-test.sh /path/to/capture/files/*" will iterate over the
specified capture files, using editcap to introduce errors and tethereal
to check for bugs.  It will do this until tethereal exits abnormally or
a dissector bug is encountered.

svn path=/trunk/; revision=14073
2005-04-14 04:32:27 +00:00
Anders Broman
1214d29348 From Jacques, Olivier:
The patch attached fixes it by creating a table of unique files at the
time of file deletion. This way, current asn2eth behaviour is not
modified.
 

svn path=/trunk/; revision=13943
2005-03-27 21:39:38 +00:00
Guy Harris
26722e4761 Fix asn2eth to pass 0, not NULL, for the last argument to
"dissect_per_restricted_character_string()", which is a guint32, not a
pointer.  Re-generate packet-h225.c with the fixed asn2eth.

svn path=/trunk/; revision=13819
2005-03-20 10:57:39 +00:00
Anders Broman
53c43f0757 Add a comment about where lemon is maintained now.
svn path=/trunk/; revision=13781
2005-03-16 22:09:30 +00:00
Guy Harris
e074470278 Handle the new signature for "dissect_per_restricted_character_string()".
svn path=/trunk/; revision=13547
2005-02-28 08:22:02 +00:00
Ronnie Sahlberg
fbf762bda5 update asn2eth and all generated dissectors to new dissect_ber_boolean that takes a implicit_tag parameter
svn path=/trunk/; revision=13479
2005-02-23 08:57:47 +00:00
Anders Broman
77a25f2703 From Tomas Kukosa:
Fix  problems with bitfields with dashed ("-") names

svn path=/trunk/; revision=13416
2005-02-16 22:40:56 +00:00
Guy Harris
6616a3770c Make the "maintainer-clean" rules get rid of some additional generated
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-14 20:33:57 +00:00
Anders Broman
1fb60a0659 From Alejandro Vaquero :
Find attached a patch for "Voip analysis" to get the LRQ/LCF/LRJ messages included in the H323 calls for Gatekeeper to Gatekeeper configurations

svn path=/trunk/; revision=13338
2005-02-07 08:58:40 +00:00
Tomas Kukosa
1d2249b2c5 Fix bug in SEQUENCE/SET OF handling
svn path=/trunk/; revision=13137
2005-01-20 11:56:33 +00:00
Gerald Combs
db4f10408c Switch the Windows build environment to GTK 2.4.14. Enable GTK-Wimp by
default in the installer.

svn path=/trunk/; revision=13087
2005-01-17 16:45:15 +00:00
Tomas Kukosa
e0d75c08f6 Support of GeneralizedTime in PER
svn path=/trunk/; revision=13086
2005-01-17 11:53:36 +00:00
Lars Roland
61a74850dd Convert files with mixed (unix and DOS) EOL-style correctly.
svn path=/trunk/; revision=13080
2005-01-17 00:23:43 +00:00
Tomas Kukosa
a79cd5b955 Fixed value string names in field array when NO_PROT_PREFIX option is used
svn path=/trunk/; revision=12949
2005-01-05 07:09:06 +00:00
Tomas Kukosa
0d5093663d Directives #.FN_* can be used for Ethereal types as well as for ASN.1 types
svn path=/trunk/; revision=12942
2005-01-03 14:41:02 +00:00
Tomas Kukosa
5e60281f8d - names for value_string tables are generated with protocol name prefix
- FROM constraint for PER supported

svn path=/trunk/; revision=12941
2005-01-03 12:54:31 +00:00
Tomas Kukosa
316569ef2b - new optional parameter ETH_VAR for #.EXPORTS directive
- few fixes for last changes

Summary of changes during last three revisions
- NULL can be used in #.PDU or #.REGISTER directive
- fix in cyclic dependency handling
- keep <proto>-exp.cnf file regardless of '-k' option
- handling of negative values in SingleValue or ValueRange constraints
- handling of all SEQUONCE/SET (OF) types including SIZE constraint
- rename ber_sequence->ber_sequence_t and ber_choice->ber_choice_t
- rename dissect_ber_integer_new()->dissect_ber_integer()
- fix number of parameters for dissect_per_GeneralString()

svn path=/trunk/; revision=12854
2004-12-29 12:28:16 +00:00
Ronnie Sahlberg
8afae320de update of the asn2eth compiler to use the types ber_[choice|sequence]_t instead of ber_[choice|sequence]
regenerated all dissectors


fixed the choice/sequence struct to use unsigned entities for class and tag
(to reduce some compiler warning and because it should be signed quantities)



svn path=/trunk/; revision=12740
2004-12-13 08:15:34 +00:00
Ronnie Sahlberg
896737c467 update the helper for BER GeneralizedTime to handle implicit tag and update all dissectors using GeneralizedTime
svn path=/trunk/; revision=12732
2004-12-12 22:47:24 +00:00
Ronnie Sahlberg
0e528dc7a1 updates from tomas and anders
create some missing makefiles for autogenerated dissectors

finish the transition to the new ber integer dissetor helper signature
and regenerate all ber dissectors



svn path=/trunk/; revision=12724
2004-12-12 01:14:03 +00:00
Gerald Combs
1007a85912 If bash is run as a non-login shell, it doesn't read /etc/profile. Under
Cygwin this has the side effect of making the Windows "find" command appear 
first in the path instead of Cygwin's "find" command.  Call /usr/bin/find
explicitly in win32-setup.sh.

svn path=/trunk/; revision=12639
2004-12-01 16:56:37 +00:00
Gerald Combs
236f1a9717 Update to GTK+ 2.4.13.
svn path=/trunk/; revision=12581
2004-11-23 17:31:16 +00:00
Ronnie Sahlberg
3528d63cdf add _U_ to int hf_index to reduce number of compiler warnings
svn path=/trunk/; revision=12547
2004-11-20 07:03:27 +00:00
Ronnie Sahlberg
bb0cf08d8c Major update of the ber helpers to fix a lot of bugs and make the handling of implicit_tags more sane.
It worked reasonably well   mainly, I suspect, due to implicit tags are reasonably uncommon in the dissectors we have already implemented and that the bugs were masking eachothers.


my regression tests (limited test samples though) decodes this new one exactly the same as the old one.


As a bonus by not changing anythiong in the decode  is that now it is possible to get dissection of implice items to work properly,  hence CMIP
(and also x509 Extensions work now)


make heaps of dissector helpers implicit_tag  aware.

change asn2eth to generate code to call the implicit_tag aware integer dissector helper.


svn path=/trunk/; revision=12520
2004-11-14 05:10:44 +00:00
Gerald Combs
5c665d64a7 Update the Windows build to zlib 1.2.2.
Have win32-setup.sh download from "2004-11-02" tag directory.

svn path=/trunk/; revision=12474
2004-11-02 19:07:52 +00:00
Guy Harris
2e8853d825 From Tomas Kukosa:
add support for ANY type;

	add support for DEFAULT { } (empty sequence);

	some minor changes.

svn path=/trunk/; revision=12464
2004-11-01 17:51:07 +00:00
Gilbert Ramirez
840c4b0505 Add netscreen2dump.py, to convert netscreen packet-trace hex dumps
to hex dumps that can be read by text2pcap.

svn path=/trunk/; revision=12435
2004-10-29 15:09:00 +00:00
Guy Harris
b18338c3e6 Add unix2dos.pl to the list of files to be distributed.
svn path=/trunk/; revision=12409
2004-10-27 19:26:01 +00:00
Olivier Biot
4878b7488b First support for Unix-to-DOS line termination translation by means of a small
perl script (unix2dos.pl). The NEWS file is now properly displayed on the
Notepad.exe text editor on a Windows box.

svn path=/trunk/; revision=12318
2004-10-16 11:46:17 +00:00
Guy Harris
18cb5c3c07 From Tomas Kukosa:
- avoid assignemnt to None which is deprecated in Python 2.3
	- fix bug when one field is used both with and without implicit
	  tag

svn path=/trunk/; revision=12277
2004-10-12 08:11:46 +00:00
Guy Harris
512285a434 More constification of arrays.
svn path=/trunk/; revision=12261
2004-10-11 08:36:55 +00:00
Guy Harris
e409958909 Constify "asn_namedbit" structures.
svn path=/trunk/; revision=12252
2004-10-11 06:31:23 +00:00
Guy Harris
7b287f6696 Make "ber_sequence" tables "const".
svn path=/trunk/; revision=12246
2004-10-08 20:43:43 +00:00
Guy Harris
6aad0b0543 From Tomas Kukosa:
- fix for protocol registration (register_dissector() does not return
  handle)
- new directive REGISTER which can register PDU more than once
- implicit tagging environment is supported 

svn path=/trunk/; revision=12177
2004-10-01 19:54:46 +00:00
Ulf Lamping
65f82a615f Use new win32 libs from anonsvn instead of webpage, including setup target. Use updated GTK 2.4.9 libraries. But still use wget.
svn path=/trunk/; revision=12086
2004-09-24 16:08:44 +00:00
Guy Harris
79c706baf9 From Tomas Kukosa:
- make the default protocol name module-name from input file
- don't use the [##]/(##) mark for index of SET/SEQUENCE item with
  original PER/BER API
- allow PDUs to be registered 

svn path=/trunk/; revision=12066
2004-09-22 16:32:20 +00:00
Ronnie Sahlberg
88a4c48f24 from tomas kukosa, fix for generated _PDU() functions to match the dissector_t signature
svn path=/trunk/; revision=11984
2004-09-13 08:00:33 +00:00
Ronnie Sahlberg
6385a7601e From Tomas Kukosa, updates to the asn2eth compiler
svn path=/trunk/; revision=11981
2004-09-13 05:13:52 +00:00
Olivier Biot
eb84a514eb Check for both HTTP_PROXY and http_proxy in MSVC++ setup.
svn path=/trunk/; revision=11759
2004-08-17 08:47:30 +00:00
Guy Harris
9ad0faed03 From Tomas Kukosa:
- only one function prototype is emitted if type is present in more
    than one cyclic dependency

  - field decoding functions has to be emitted immediately after a
    function prototype in case of cyclic dependency

  - few grammar changes               

svn path=/trunk/; revision=11535
2004-07-27 05:32:58 +00:00
Guy Harris
4249e8856c Fromm Tomas Kukosa: update to version 1.5.
svn path=/trunk/; revision=11534
2004-07-27 05:30:03 +00:00
Gerald Combs
655dd8d96b Fix up the declaration of yy_accept().
svn path=/trunk/; revision=11521
2004-07-25 17:35:57 +00:00
Jörg Mayer
e869dbb17d Trivial warning fixes:
- comma at end of enum
- function declarations with empty args instead of void
- c++ style comments

svn path=/trunk/; revision=11492
2004-07-23 23:28:08 +00:00
Ronnie Sahlberg
0d59053844 make the implicit_tag parameter _U_ to get rid of some compiler warnings in those cases it is not used.
svn path=/trunk/; revision=11485
2004-07-23 13:21:48 +00:00
Jörg Mayer
fd24ad7d92 .cvsignore is dead
it has been replaced by
svn proplist -v <dir/file>
and
svn propedit <dir/file>

svn path=/trunk/; revision=11422
2004-07-18 23:44:34 +00:00
Jörg Mayer
56c759212f Add epan/dissectors/.cvsignore
Add tags and TAGS to all .cvsignore files

svn path=/trunk/; revision=11419
2004-07-18 22:51:50 +00:00
Guy Harris
8a8b883450 Set the svn:eol-style property on all text files to "native", so that
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on
Windows, not on UN*X.

svn path=/trunk/; revision=11400
2004-07-18 00:24:25 +00:00
Guy Harris
789f70f743 From Tomas Kukosa: small fix for ASN2ETH compiler concerning creation of
export conformance file.

svn path=/trunk/; revision=11246
2004-06-26 09:56:22 +00:00
Ronnie Sahlberg
9c880121eb from tomas k
updates to the asn2eth compiler and a new regenerated h235 dissector

svn path=/trunk/; revision=11231
2004-06-24 21:50:05 +00:00
Ronnie Sahlberg
8bd0783e6b from Tomas K
updates to the asn2eth per/ber compiler

svn path=/trunk/; revision=11223
2004-06-24 05:13:59 +00:00
Ronnie Sahlberg
1c236463ba update asn1 compiler to (hopefully) handle BER SET OF constructs
svn path=/trunk/; revision=11141
2004-06-12 02:08:34 +00:00
Ronnie Sahlberg
2aaa6a6ca0 Parameter 8 to dissect_ber_bistring() is the ett_ variable (or -1) and not
a NULL **proto_tree pointer.

Set the ett variable to always be -1 for the time being

svn path=/trunk/; revision=11140
2004-06-12 01:34:29 +00:00
Ronnie Sahlberg
02e4a25626 From Tomas Kukosa updates to the ASN1 compiler
Change doc string to not specificly state it is for PER
Temporary/Partial fix for the tag of impoerted types.

svn path=/trunk/; revision=11139
2004-06-12 01:21:02 +00:00
Ronnie Sahlberg
c4c61d62a5 update to the asn1 compiler.
Do not output the value definitions for enumerated integers twice.
the c compiler doesnt like when the same symbol is declared twice.

svn path=/trunk/; revision=11124
2004-06-07 07:44:36 +00:00
Ronnie Sahlberg
64c5600578 Tomas updates to H235 and the ASN2ETH compiler
svn path=/trunk/; revision=11104
2004-06-04 11:28:04 +00:00
Gerald Combs
c2df076764 As Mark Corley pointed out, win32-setup.sh should be part of the distribution.
svn path=/trunk/; revision=11102
2004-06-04 03:25:35 +00:00
Guy Harris
aad35bf43f From Tomas Kukosa:
- limits for dissect_per_constrained_integer() are passed as unsigned
    if possible
  - new directive NO_EMIT in conformation file - avoids emitting
    function body (or vals or both) into packet-xxxx-fn.c file
  - new directive USER_DEFINED in conformation file - emitting of
    function body (or vals or both) in the packet-xxxx-fn.c file is
    replaced with external declaration
  - support for SET OF type for BER
  - flag WITH_VALS is default for EXPORTS, USER_DEFINED, NO_EMIT
    directives
  - the _U_ attribute is used for pinfo parameters
  - the offset parameters and return codes are changed from guint32 to
    int

svn path=/trunk/; revision=11088
2004-06-03 08:33:29 +00:00
Guy Harris
40ecde2765 The function pointer in a "per_choice_t" or a "per_sequence_t" is to a
function that returns "int", not "guint32"; define those functions to
return "int".

svn path=/trunk/; revision=10999
2004-05-25 21:23:09 +00:00
Guy Harris
3858062c2f Replace some Windows dash/hyphen character with a "-" in some comments.
Make the header files declare the "value_string" arrays as "extern", so
as to prevent problems on some platforms when building a shared
libethereal.

Note that, at least currently, we have separate "PER_NOT_DECODED_YET()"
and "BER_NOT_DECODED_YET()" macros, rather than a common
"NOT_DECODED_YET()" macro.

svn path=/trunk/; revision=10996
2004-05-25 21:06:54 +00:00
Ronnie Sahlberg
67e156bb57 From Tomas Kukosa
ASN2ETH compiler and support script for lexical and syntactic analysis.

Will later be used for all those ASN.1 protocols we havent implemented yet

svn path=/trunk/; revision=10983
2004-05-24 08:33:09 +00:00
Ulf Lamping
bc97e57d92 minor changes
svn path=/trunk/; revision=10749
2004-05-01 06:21:07 +00:00
Olivier Biot
5bc27b16b6 Some of the DLLs from the developer ZIP archives don't have the executable bit
set. As a result, tethereal cannot run for the generation of the protocol
field list for the ethereal-filter documentation.

Fix this issue when unpacking the ddeveloper ZIP archives.

svn path=/trunk/; revision=10711
2004-04-26 17:21:22 +00:00
Olivier Biot
094359e9f8 Add code for HTTP proxy detection based on the http_proxy shell variable.
Fix the tests with string equal empty_string:
	"$str" == ""
is either
	"$str" = ""
or
	-z "$str"

svn path=/trunk/; revision=10703
2004-04-25 22:14:43 +00:00
Gilbert Ramirez
f31ddecf91 Add support for flex 2.5.31.
svn path=/trunk/; revision=10684
2004-04-25 04:53:42 +00:00
Gerald Combs
f1cb4f2f0a Modify the "setup" target to download the packages we've defined, so that we
don't download the GTK2 packages unless we have GTK2_DIR defined.

Fix some path checking in win32-setup.sh.

svn path=/trunk/; revision=10577
2004-04-09 16:54:07 +00:00
Gerald Combs
a011fb14e2 Add a Makefile.nmake target called "setup" that uses the script
tools\win32-setup.sh to

  - Check for applications required to build Ethereal
  - Download and unpack required packages into $ETHEREAL_LIBS

Update ADNS to the latest version.

Make Python 2.3 the default.

svn path=/trunk/; revision=10567
2004-04-08 20:36:09 +00:00
Gilbert Ramirez
5cfc41fd88 If the LHS is a STRING or UNPARSED string, and the RHS is a FIELD,
then make sure that the FIELD can participate in the relation that
is expressed in the display filter.

Note that tvbuff's *should* be able to participate in == comparisons, etc.,
but those functions need to be added to ftype-tvbuff.c first.

svn path=/trunk/; revision=10175
2004-02-22 03:04:41 +00:00
Jörg Mayer
61581fb780 Fix a warning by using a function typedef
svn path=/trunk/; revision=9834
2004-01-25 09:49:50 +00:00
Jörg Mayer
76c7e98449 Fix some of the warnings when compiling with -Wstrict-prototypes
svn path=/trunk/; revision=9720
2004-01-18 15:53:43 +00:00
Guy Harris
c4df6e6464 Give it an RCS ID and copyright notice.
svn path=/trunk/; revision=9481
2003-12-29 20:46:12 +00:00
Gilbert Ramirez
c1d8c99fa2 Add a missing backslash for the EXTRA_DIST files.
svn path=/trunk/; revision=9477
2003-12-29 20:11:42 +00:00
Ulf Lamping
d604209b21 removed some MSVC warnings (added type casts)
svn path=/trunk/; revision=9371
2003-12-21 00:16:54 +00:00
Gilbert Ramirez
c7cee4331f -Tpdml and -Tps force -V. Thus, -V is no longer required when using -Tpdml.
Eventually, -Tps will not force -V, and will print summaries when -V is
not selected. However, work still has to be done there.

svn path=/trunk/; revision=9218
2003-12-09 05:56:31 +00:00
Gilbert Ramirez
058ef64db8 Add the ability to print packet dissections in PDML (an XML-based format)
to tethereal. It could be added to Ethereal, but the GUI changes to
allow the user to select PDML as a print format have not been added.

Provide a python module (EtherealXML.py) to help parse PDML.

Provide a sample app (msnchat) which uses tethereal and EtherealXML.py
to reconstruct MSN Chat sessions from packet capture files. It produces
a nice HTML report of the chat sessions.

Document tethereal's PDML and EtherealXML.py usage in doc/README.xml-output

Update tethereal's manpage to reflect the new [-T pdml|ps|text] option

svn path=/trunk/; revision=9180
2003-12-06 06:09:13 +00:00
Guy Harris
be4197e744 From Ulf Lamping: add some missing "cd .."s. (I guess the current
directory in nmake files persists across targets; presumably all
commands, or, at least, all "cd" commands, are run in the same process.)

svn path=/trunk/; revision=8682
2003-10-13 19:04:56 +00:00
Guy Harris
02e1d2680a Give every Makefile.nmake file a "distclean" rule, and have "distclean"
recurse into subdirectories doing "nmake -f Makefile.nmake distclean".

Have "nmake -f Makefile.nmake clean" not remove stuff that "make clean"
doesn't remove (such as Flex/Bison output and config.h files) - and have
"nmake -f Makefile.nmake distclean" remove stuff that "make distclean"
removes, including "tethereal-tap-register.c" and
"ethereal-tap-register.c".

svn path=/trunk/; revision=8672
2003-10-10 21:31:53 +00:00
Gilbert Ramirez
52338a3baf Add a "contains" operator for byte-strings, strings, and tvbuffs (protocols).
The search uses a naive approach; more work is required to add a
Boyer-Moore Search algorithm.

svn path=/trunk/; revision=8280
2003-08-27 15:23:11 +00:00
Gilbert Ramirez
086774b71f Add to the fundamental types passed between the scanner and the parser.
Besides "STRING", there is now "UNPARSED_STRING", where the distinction
is that "STRING" was a double-quoted string and "UNPARSED_STRING" is just
a sequence of characters that the scanner didn't know how to scan/parse,
so it's up to the Ftype to parse it.

This gives us more flexibility and prepares the dfilter parsing engine
for the upcoming addition of the "contains" operator.

In the process of doing this, I also re-did the double-quoted string
support in the scanner, so that instead of the naively-simple support we
used to have, double-quoted strings now can have embedded dobule-quotes,
embedded octal sequences, and embedded hexadecimal sequences:
    "\""    embedded double-quote
    "\110"  embedded octal
    "\x48"  embedded hex

Enhance the dfilter unit test script to be able to run a single collection
of tests instead of having to run all of them all the time.

svn path=/trunk/; revision=8083
2003-07-25 03:44:05 +00:00
Gilbert Ramirez
6a8701fb67 Script to unit-test ftype functions via dfilters passed to tethereal.
Uses text2pcap to create pcap trace files from hex-dumps embedded in the
test script.

svn path=/trunk/; revision=7996
2003-07-09 03:57:34 +00:00
Gilbert Ramirez
bc2eac429c Handle diff lines that look like "Binary files".
svn path=/trunk/; revision=7841
2003-06-11 14:48:27 +00:00
Jörg Mayer
7c4176d868 Removed trailing whitespaces from .h and .c files using the
winapi_cleanup tool written by Patrik Stridvall for the wine
project.

svn path=/trunk/; revision=6117
2002-08-28 21:04:11 +00:00
Guy Harris
6744433452 From Joerg Mayer: mark possibly-unused arguments as unused.
svn path=/trunk/; revision=5388
2002-05-04 10:19:20 +00:00
Guy Harris
c942bebb4c From Joerg Mayer: get rid of an unused argument, and flag another as
unused.

svn path=/trunk/; revision=5387
2002-05-04 10:16:12 +00:00
Gilbert Ramirez
ac8bc4249f Use the gdb "x" (examine memory) command instead of "print" to obtain
the packet data.  "print" will only show the first 200 members of an array,
whereas "x" doesn't seem to have a limit.

svn path=/trunk/; revision=4884
2002-03-06 06:14:21 +00:00
Gilbert Ramirez
736ac33a0c Add ability to pull packet from add_packet_to_packet_list() frame.
svn path=/trunk/; revision=4881
2002-03-06 03:34:50 +00:00
Guy Harris
b4971b39bf From Joerg Mayer:
In the "configure.in" files, add

		-D_U_="__attribute__((unused))"

	to CFLAGS if we're using GCC, and add

		-D_U_=""

	otherwise, so _U_ can be used to mark arguments as unused.

Add -D_U_="" arguments to the Makefile.nmake files as well, so _U_ works
with Microsoft Visual C++ as well.

Add comments and RCS IDs to the Makefile.nmake files that don't already
have them.

svn path=/trunk/; revision=4824
2002-02-27 09:42:52 +00:00
Gilbert Ramirez
d3b5ddbef1 Add first attempt at creating a tool to take a [t]ethereal core file
and using gdb, extract the packet that was being dissected when the
core file was created. It works in simple cases; it will probably
fail in many other cases. Right now it only creates libpcap files, and uses
text2pcap to do so.

svn path=/trunk/; revision=4767
2002-02-21 16:15:56 +00:00
Guy Harris
d4017a1ee1 Fix up some type/size problems that showed up when compiling on Digital
UNIX on Alpha.

svn path=/trunk/; revision=4635
2002-01-30 22:55:15 +00:00
Guy Harris
5027073407 From Hamish Moffatt:
Add some missing files in the "clean" targets.

	Use pod2html rather than man2html to build HTML man pages.

	Fix ethereal.nsi.in for recent versions of NSIS, and fix a typo.

svn path=/trunk/; revision=4475
2002-01-04 06:57:10 +00:00
Guy Harris
39362af814 From Motonori Shindo:
fix a bogus batch mode inference rule of make, so that
	"vc60.pdb" files are created in the proper directory;

	delete ".pdb" files in a "nmake -f Makefile.nmake clean";

	include the text2pcap and mergecap ".pdb" files in the Windows
	binary distribution.

svn path=/trunk/; revision=4385
2001-12-12 01:29:13 +00:00
Gilbert Ramirez
f14a6b8b91 Hopefully the last time I have to change my e-mail address.
svn path=/trunk/; revision=4199
2001-11-13 23:55:44 +00:00
Guy Harris
f57a2329ec Remove "text2pcap-scanner.obj" and "tools\lemon\lemon.obj" when a "nmake
clean" is done.

svn path=/trunk/; revision=4188
2001-11-09 09:22:07 +00:00
Guy Harris
5881ffaf2a From Motonori Shindo: have CVS ignore some files generated by Win32
builds.

svn path=/trunk/; revision=3995
2001-10-04 21:08:11 +00:00
Guy Harris
cc21ec8124 Do __attribute__ stuff if the GCC version number is greater than or
equal to 2, not just if it's equal to 2 - GCC 3.0 makes it 3, not 2....

svn path=/trunk/; revision=3765
2001-07-22 10:25:50 +00:00
Guy Harris
032f16e2eb If length arguments to "%*s" aren't of type "int", cast them to "int",
as that's what C requires them to be.

svn path=/trunk/; revision=3610
2001-06-26 20:52:19 +00:00
Guy Harris
a39e4e8a5d Signed vs. unsigned fixes from Joerg Mayer.
svn path=/trunk/; revision=3372
2001-04-23 23:45:35 +00:00
Gilbert Ramirez
1ae90b3d24 nmake was compiling lemon.c twice; now let it use its default
rules, keeping it from over-compiling.

svn path=/trunk/; revision=3325
2001-04-18 04:55:36 +00:00
Gilbert Ramirez
e79474408f Revert. MSVC is wrong. Thanks to Guy for pointing that out.
svn path=/trunk/; revision=3323
2001-04-18 04:52:51 +00:00
Gilbert Ramirez
d61a474b93 Makefile.nmake pulls in settings from config.nmake
Move 'const' keyword to keep const qualifiers balanced... gets rid
of complaint from MSVC.

svn path=/trunk/; revision=3321
2001-04-18 03:02:57 +00:00
Guy Harris
64a43e1c0e Fixes to Lemon to get it to compile on platforms (such as some versions
of Tru64 UNIX) that define TRUE and FALSE.

Fixes to some Tru64 compiler warnings.

svn path=/trunk/; revision=3120
2001-03-09 04:35:25 +00:00
Gilbert Ramirez
4b6b3da4e7 Add some win32-specific targets in .cvsignore's.
Replace 'nmake' with $(MAKE) /$(MAKEFLAGS), from Mike Frisch.

svn path=/trunk/; revision=3108
2001-03-06 13:08:13 +00:00
Gilbert Ramirez
b864c8d80d Move the location of cppmagic.h, since the lemon-flex include files
require it. It makes more sense to either put cppmagic with lemon, or
in yet another common directory. I'll just put it with lemon.

svn path=/trunk/; revision=3083
2001-02-27 20:34:09 +00:00
Gilbert Ramirez
58afc7c0b4 Add a little script which takes the output of "cvs diff", which is
a flattened recursive diff, and unflattens it, so that it can
be applied with "patch -p0". This has tested only against the output
of "cvs diff -u".

Usage:

cvs diff -u | cvsdiff-fix.py > file.diff

svn path=/trunk/; revision=3071
2001-02-23 16:30:51 +00:00
Guy Harris
7a47c7ef24 Don't cast the function argument to "qsort()" to the expected type, make
the function have the expected type.

Make the arguments to comparison functions used by the merge sort be
"const void *", not "void *", just as the arguments to the comparison
functions used by "qsort()" are "const void *".

svn path=/trunk/; revision=3040
2001-02-15 09:25:38 +00:00
Guy Harris
352eec3037 More prototype fun - make the Lemon parser allocate and free routines
take fully-prototyped function arguments with types appropriate to
"g_malloc()" and "g_free()", and change the calls to the functions
pointed to by those arguments not pass the extra __FILE__ and __LINE__
arguments.

svn path=/trunk/; revision=3039
2001-02-15 06:22:46 +00:00
Guy Harris
6eaa148b30 More paranoia - when compiling with GCC 2.x, do checks of the format
string argument and subsequent arguments to "ErrorMsg()".

Fix up the bugs the checks in question found.

svn path=/trunk/; revision=3038
2001-02-15 06:08:23 +00:00
Guy Harris
efabd03215 Change "lemon" *NOT* to cast pointers to "int", as that doesn't work on
LP64 platforms.

Change "lemon" to use function prototypes and the official ANSI C style
of variable-argument-list functions, and to include various system
header files rather than to use non-prototype declaration of various
system functions, to do a lot more type checking.

svn path=/trunk/; revision=3037
2001-02-15 06:01:23 +00:00
Guy Harris
3ce594a981 Add a "-f" flag to the "rm", so that "make clean" won't get an error
(and cause a higher-level "make clean" to stop) if any of the files to
be removed aren't there.

svn path=/trunk/; revision=2991
2001-02-04 19:44:24 +00:00
Gilbert Ramirez
95e09f5ac3 Add Makefile.nmake files for new subdirs.
Add them to EXTRA_DIST in corresponding Makefile.am's so that they
get packaged with the distribution.

svn path=/trunk/; revision=2979
2001-02-02 04:03:43 +00:00
Guy Harris
d12fb1f952 Rename the "optarg()" and "opterr()" functions to "get_optarg()" and
"get_opterr()" so they don't collide with "getopt()"s "optarg" and
"opterr" globals (Solaris 2.6's <stdio.h> declares both "optarg" and
"opterr", causing "lemon.c" not to compile).

Define "safe_isXXX()" macros to call "isXXX()" after casting the
argument to "unsigned char" to handle characters with the 8th bit set.
Make some "int" variables used only to hold characters "char" instead.

svn path=/trunk/; revision=2970
2001-02-01 21:46:48 +00:00
Gilbert Ramirez
8f1fff2e6a Create a more modular type system for the FT_* types. Put them
into epan/ftypes.

Re-write display filter routines using Lemon parser instead of yacc.
Besides using a different tool, the new grammar is much simpler, while
the display filter engine itself is more powerful and more easily extended.

Add dftest executable, to test display filter "bytecode" generation.
Add option to "configure" to build dftest or randpkt, both of which are not
built by default.

Implement Ed Warnicke's ideas about dranges in the new display filter and
ftype code.

Remove type FT_TEXT_ONLY in favor of FT_NONE, and have protocols registered
as FT_PROTOCOL. Thus, FT_NONE is used only for simple labels in the proto tree,
while FT_PROTOCOL is used for protocols. This was necessary for being
able to make byte slices (ranges) out of protocols, like "frame[0:3]"

Win32 Makefile.nmake's will be added tonight.

svn path=/trunk/; revision=2967
2001-02-01 20:21:25 +00:00