Ronnie Sahlberg
8920a7e7f2
change the signature that asn2wrs generates for functions to marm all parameters as _U_
...
to reduce the number of compiler warnings.
update some template and cnf files to use _U_ as well
svn path=/trunk/; revision=21088
2007-03-21 10:22:22 +00:00
Luis Ontanon
b26c1c4ca2
Add a description of UAT fields, and have it as a tooltip in the New/Edit Dialog.
...
svn path=/trunk/; revision=20797
2007-02-12 19:57:41 +00:00
Luis Ontanon
4e55e354bb
Have the windows buildot compiling again.
...
svn path=/trunk/; revision=20742
2007-02-08 10:15:04 +00:00
Luis Ontanon
b08d8470e7
Oddly enough MSVC cannot compile this one.
...
svn path=/trunk/; revision=20738
2007-02-07 18:51:44 +00:00
Luis Ontanon
2006fac500
* Add a category param to the uat.
...
* UATify SNMP Users
svn path=/trunk/; revision=20736
2007-02-07 14:54:35 +00:00
Gerald Combs
f67fdf4865
Move sha1.[ch] to epan/crypt/crypt-sha1.[ch]. Remove duplicate code.
...
svn path=/trunk/; revision=20399
2007-01-12 00:33:32 +00:00
Luis Ontanon
efa6338231
warn the user if the decrypted data doesn't look like a ScopedPDU instead of dissecting it.
...
svn path=/trunk/; revision=20393
2007-01-11 17:39:16 +00:00
Luis Ontanon
5223c8dfa6
- allow use of * as any-engine-id
...
- automatic localization of usertable entries with no engine-id
- remove last remains of debug code
svn path=/trunk/; revision=20387
2007-01-11 00:29:50 +00:00
Luis Ontanon
f3679ee8a2
sync changes with asn/snmp
...
svn path=/trunk/; revision=20367
2007-01-10 01:16:22 +00:00
Luis Ontanon
faa3da9af0
change the loading order of some headers to avoid a conflict with net-snmp
...
svn path=/trunk/; revision=20356
2007-01-09 20:22:48 +00:00
Luis Ontanon
f7a79f43e7
SNMPv3 USM decryption/authentication phase 1
...
svn path=/trunk/; revision=20353
2007-01-09 18:38:55 +00:00
Jörg Mayer
e26860607d
Get rid of UCD SNMP support (it's not longer supported and
...
superseeded by net-snmp). Replace some_snmp by net_snmp
where appropriate.
svn path=/trunk/; revision=20071
2006-12-08 15:05:41 +00:00
Ronnie Sahlberg
a3eedad0d1
Counter64 should be a FT_UINT64 and not a FT_UINT32
...
fixes bug 1047
svn path=/trunk/; revision=19002
2006-08-23 08:05:28 +00:00
Tomas Kukosa
5cd8c719e6
ASN.1 dissectors regenerated with new asn2wrs to get updated field blurb
...
svn path=/trunk/; revision=18921
2006-08-16 05:58:39 +00:00
Gerald Combs
d55ec3bd66
Fix compilation on systems with Net-SNMP.
...
svn path=/trunk/; revision=18695
2006-07-10 01:05:24 +00:00
Gerald Combs
8b315480f1
In new_format_oid(), handle a zero-length OID.
...
Fix a bug introduced recently in packet-rpc.c.
Replace DISSECTOR_ASSERT() with THROW(ReportedBoundsError) in my recent
checkins, since fuzz-test.sh sets WIRESHARK_ABORT_ON_DISSECTOR_BUG.
svn path=/trunk/; revision=18693
2006-07-09 22:12:02 +00:00
Gerald Combs
de826c3425
Don't pass an empty OID to sprint_realloc_variable(). This should fix a
...
recent fuzz error.
Fix up whitespace.
svn path=/trunk/; revision=18667
2006-07-05 21:30:25 +00:00
Ronnie Sahlberg
b9ee7a9b4f
replace the two remaining g_malloc with ep_alloc
...
this indirectly fixes a tiny memory leak with one of the g_mallocs
svn path=/trunk/; revision=18649
2006-07-04 03:27:14 +00:00
Ronnie Sahlberg
45cb7d3fab
check_var_length can also return ewp allocated memory now
...
svn path=/trunk/; revision=18648
2006-07-04 03:15:58 +00:00
Ronnie Sahlberg
889fe1c6fe
make new_format_oid return ep allocated data.
...
this also removes several small memory leaks through get_oid_name and get_oid_str_name where the callers nevber freed the data
svn path=/trunk/; revision=18647
2006-07-04 02:36:18 +00:00
Ronnie Sahlberg
c27681ad4d
make format_oid use ep allocated memory internally instead of malloced memory
...
svn path=/trunk/; revision=18645
2006-07-04 02:15:55 +00:00
Ronnie Sahlberg
69ccdaa778
make format_var return ep allocated memory
...
svn path=/trunk/; revision=18644
2006-07-04 01:56:52 +00:00
Jörg Mayer
392e584e1e
Include <ctype.h> to fix some warnings. Regenerate the
...
dissector.
svn path=/trunk/; revision=18461
2006-06-14 08:08:51 +00:00
Tomas Kukosa
a063a87af5
- "next tvb" list moved from h225 to new file next_tvb.[ch]
...
- h225 updated and regenerated
- restore calling subdissectors for SNMP variables which was broken with new SNMP
svn path=/trunk/; revision=18451
2006-06-13 13:21:12 +00:00
Anders Broman
d17dad9ead
Atempt to fix bug 967 crash on fuzzed SNMP capture. I can't reproduce the Bug.
...
svn path=/trunk/; revision=18216
2006-05-23 20:36:49 +00:00
Ronnie Sahlberg
feab79e328
change a whole bunch of ethereal into wireshark
...
svn path=/trunk/; revision=18196
2006-05-21 04:49:01 +00:00
Guy Harris
aa4b59de6f
Don't throw an exception in oid_to_subid_buf() if the generated OID is
...
zero-length - oid_to_subid_buf() can be called when we're not in the
middle of a dissection, and throwing a "dissector bug" assertion in that
case is itself a bug.
svn path=/trunk/; revision=18164
2006-05-15 17:58:39 +00:00
Anders Broman
e49fe267e6
Remove stupid code.
...
svn path=/trunk/; revision=18148
2006-05-14 08:17:39 +00:00
Anders Broman
396a33dbee
snmp: Hopfully fix bug Bug 925.
...
Add packet-ulp.c missing from last commit.
svn path=/trunk/; revision=18144
2006-05-13 22:18:08 +00:00
Anders Broman
9740278a1d
Fix bug 926 OID wrongly decoded.
...
svn path=/trunk/; revision=18106
2006-05-08 17:30:24 +00:00
Anders Broman
abbbc2c4da
Use the asn2eth generated snmp dissector.
...
svn path=/trunk/; revision=18086
2006-05-03 19:09:03 +00:00
Ulf Lamping
297ed538fc
mark parser error messages as Ethereal generated
...
svn path=/trunk/; revision=17593
2006-03-11 20:19:20 +00:00
Anders Broman
b4d028c47e
Fix:
...
Coverity CID19 Remove an uneccesarry line
CID20 Use the code from the asn2eth generated dissector while at it.
svn path=/trunk/; revision=17532
2006-03-08 18:56:13 +00:00
Ronnie Sahlberg
590d27a8c0
add new dissect_ber_integer64() that can handle 8,16,24,32 and 64bit integers.
...
use proto_tree_add_[u]int[8,16,24,32,64]() instread of proto_tree_add_item()
since BER integers may well be encoded in less bytes than the type requires.
(i do not think the old code with proto_tree_add_item() could have handleded negative values very well or at all.)
svn path=/trunk/; revision=17425
2006-02-28 09:39:53 +00:00
Ronnie Sahlberg
8cf12717d5
make the old style SNMP dissector handle 64 bit integers better
...
fixes bug 723
svn path=/trunk/; revision=17369
2006-02-22 10:45:23 +00:00
Gerald Combs
f816511ea9
In packet-cops.c use proto_item_append_text() instead of creating a
...
separate buffer. Fixes the current Buildbot failure.
Don't let the sprint_realloc_* functions reallocate ep_allocated memory.
Add comments warning against this in the future.
In emem.c, make sure we don't use an extra 100k every stinkin' time
someone wants to allocate memory when debugging is enabled.
Fixup whitespace.
svn path=/trunk/; revision=17051
2006-01-18 20:02:19 +00:00
Jaap Keuter
055d695edc
Fixes bug 679.
...
The offset wasn't passed to the PDU dissector so it always started dissection
from the start of the TVB.
svn path=/trunk/; revision=17020
2006-01-12 16:17:07 +00:00
Guy Harris
322999c545
Note that we should redo the handling of OIDs when
...
"dissect_ber_object_identifier()" can return the OID in a binary form.
svn path=/trunk/; revision=16036
2005-09-28 08:01:54 +00:00
Guy Harris
ab2dca9114
Move some headers for stuff defined by a dissector into epan/dissectors
...
- and rename smb.h to packet-smb.h, as it's packet-smb.c's header file.
svn path=/trunk/; revision=15845
2005-09-17 00:31:15 +00:00
Guy Harris
b7b80d94be
Move a pile of protocol-related headers from the top-level source
...
directory to the epan directory. Some of them should perhaps ultimately
be moved to epan/dissectors, if they pertain only to stuff exported by a
particular dissector.
Fix Gerald's e-mail address in files we're moving.
svn path=/trunk/; revision=15844
2005-09-17 00:02:31 +00:00
Guy Harris
b8ae3f1988
If we've enabled the display of BER encapsulation tokens, only put them
...
into the protocol tree once.
Fix the offsets and lengths used to put the variable binding values into
the protocol tree.
svn path=/trunk/; revision=15837
2005-09-16 09:47:18 +00:00
Anders Broman
6e979407ef
Fix a warning.
...
svn path=/trunk/; revision=15801
2005-09-14 19:11:23 +00:00
Anders Broman
9a7de2ab43
Do the variable binding with dissect_ber_x() routines rather than asn1 ones.
...
svn path=/trunk/; revision=15798
2005-09-14 17:08:41 +00:00
Guy Harris
33d72d3b9d
Fail somewhat gracefully if malloc() fails.
...
svn path=/trunk/; revision=15701
2005-09-06 17:43:22 +00:00
Gerald Combs
efdef9c5aa
For SNMP, malloc memory that we're going to free later. Fixes bug 406.
...
For RTP, don't free se_allocated memory.
svn path=/trunk/; revision=15694
2005-09-05 21:38:10 +00:00
Guy Harris
1d861e5f58
Use "free()", not "g_free()", to free strings allocated with "malloc()".
...
Don't free strings allocated with "ep_alloc()".
svn path=/trunk/; revision=15571
2005-08-27 18:22:53 +00:00
Guy Harris
bd8c6df460
"sprint_realloc_objid()" expects to be handled a malloced buffer, so
...
hand it one (and check for malloc failures), and it returns a malloced
or realloced buffer, so free it when we're done.
That means that routines that use it can return/supply back a null
pointer, so check for that.
Don't ep_allocate fixed-length buffers for formatted OID information,
allocate one that's 'big enough".
svn path=/trunk/; revision=15524
2005-08-25 03:28:31 +00:00
Ronnie Sahlberg
4e088df2b4
no more g_malloc or sprintf in snmp
...
svn path=/trunk/; revision=15444
2005-08-19 22:44:56 +00:00
Ronnie Sahlberg
d0408f5583
more gmalloc sprintf removals
...
svn path=/trunk/; revision=15443
2005-08-19 22:34:28 +00:00
Ronnie Sahlberg
68db27d05b
remove two gmalloc and some sprintf
...
svn path=/trunk/; revision=15442
2005-08-19 22:26:10 +00:00