Commit Graph

99 Commits

Author SHA1 Message Date
Gerald Combs 1997308ac1 Handle unsigned SMI types. This should fix bug 2292.
svn path=/trunk/; revision=24457
2008-02-25 00:00:41 +00:00
Tomas Kukosa e6e926d5f1 get rid of get_ber_last_created_item()
svn path=/trunk/; revision=24001
2008-01-03 13:07:17 +00:00
Stig Bjørlykke 3fe2bbe38f Fetch ObjectName and its relative oid_info before handling an eventual error
value, so we have valid values to put in the VarBind entry.  Include the error
note text as the label.

This should fix bug 2144.

svn path=/trunk/; revision=23962
2007-12-28 22:19:33 +00:00
Tomas Kukosa 0ba8976eb7 fix confusion in tag handling
svn path=/trunk/; revision=23702
2007-12-03 13:48:45 +00:00
Tomas Kukosa 7eb5048da9 fix tag handling inside snmp trap
svn path=/trunk/; revision=23508
2007-11-20 13:55:39 +00:00
Ronnie Sahlberg 5770b859b6 updated snmp dissector
svn path=/trunk/; revision=23455
2007-11-15 09:50:36 +00:00
Gerald Combs 7d8064f548 Initialize var_list in dissect_smux(), so that we don't use previously
ep_freed() memory and abort.

svn path=/trunk/; revision=23436
2007-11-12 18:44:29 +00:00
Anders Broman 44470bc5f4 SNMP with option -X and -T
svn path=/trunk/; revision=23352
2007-11-04 16:47:30 +00:00
Bill Meier b337d20d4c Include winposixtypes.h only if building with GNUTLS; Bug 1942: part 2 of 2 of fix.
asn1 template file plus generated .[hc] files;
Note that the generated files include changes which are a result of previous
changes to snmp.cnf (SVN #23252) and of other changes (eg: svn 21145).

svn path=/trunk/; revision=23302
2007-10-29 01:14:51 +00:00
Jörg Mayer 094e2a9a5f Get rid of the remains of NET-SNMP in the build process.
svn path=/trunk/; revision=22934
2007-09-24 06:59:40 +00:00
Jaap Keuter 2ae2f20203 Try to get the Windows buildbot going by avoiding namespace collision.
svn path=/trunk/; revision=22871
2007-09-14 06:51:07 +00:00
Luis Ontanon 168f8923e7 eliminate an anonymous enum.
svn path=/trunk/; revision=22868
2007-09-13 20:27:05 +00:00
Luis Ontanon fb34ef1f2c Given the opportunity I check in the changes to snmp I got in this machine.
- Indexing (implied and not) is OK now, however indexes for related tables (AUGMENT, EXTEND, etc) are registered many times.


svn path=/trunk/; revision=22861
2007-09-13 16:49:51 +00:00
Luis Ontanon d56f4f3a68 - turn some other TC from FT_BYTES to FT_STRING so that human-readable strings become readable by humans
- Add the EngineId decoding for the contextEngineId
- Add some expert info about malformed indexed oids


svn path=/trunk/; revision=22720
2007-08-28 23:55:49 +00:00
Luis Ontanon 79ea56143c Fix non implicit oid key indexes. This starts to look good!
svn path=/trunk/; revision=22718
2007-08-28 21:27:54 +00:00
Luis Ontanon dfbac00752 SNMP:
- As noted by Thomas Anders values are not added to the tree anymore. Move the calling of subdissectors to the end of the function, so that the value is added to the tree.
 - add port 8161 to be decoded as SNMP (hey, it's on IANA's services file!)
UAT:
 - do not have the uat reloaded.
OIDS:
 - do not complain if renaming an OID to an identical name



svn path=/trunk/; revision=22704
2007-08-28 15:18:32 +00:00
Tomas Kukosa 99a2ec1c9f fix bug in snmp.variable_oid subdissector calling and call them at the end of snmp dissector (so as snmp does not overwrite COL_INFO of subdissector)
svn path=/trunk/; revision=22701
2007-08-28 07:59:35 +00:00
Luis Ontanon 392fd3f689 - packet-snmp(-template).c
- reimplement the "snmp.variable_oid" dissector table
- oids.[ch]
   - get rid of keytype_implicit in oid_value_type_t we won't use it.
   - have the windows base path for mibs be consistent to where we've put the mibs
   - oid_get_from_encoded() and oid_get_from_string(): have the subids array being computed in a prior statement of where the side-effected argument is going to be used... worked on gcc, not on windows... I deserve "have daemons flying out of my nose" for that :-).


svn path=/trunk/; revision=22684
2007-08-27 17:05:11 +00:00
Luis Ontanon 00c5e48a17 get users of oid_resolv to use the new oids, rollout packet-snmp.c
svn path=/trunk/; revision=22651
2007-08-25 01:14:24 +00:00
Jörg Mayer 5a1e278801 Revert back to old version with manually fixed get_ber_length parameters
svn path=/trunk/; revision=22636
2007-08-24 13:52:37 +00:00
Jörg Mayer b312e64f6a get_ber_length doesn't need the tree argument, get rid of it.
Rebuild asn1 dissectors.

svn path=/trunk/; revision=22627
2007-08-24 07:12:04 +00:00
Jeff Morriss a6dd859454 For LEGO: Use crypt_tvb when we don't have cleartext_tvb
svn path=/trunk/; revision=22358
2007-07-19 14:04:56 +00:00
Jeff Morriss 81e2b4b66e Change "lenght" to "length", this time in the *source* of the SNMP dissector (sigh)
svn path=/trunk/; revision=22357
2007-07-19 13:43:36 +00:00
Jeff Morriss 794a933a2c Change "lenght" to "length" and "decypt" to "decrypt"
svn path=/trunk/; revision=22356
2007-07-19 13:05:39 +00:00
Anders Broman dca634c4de Prepare for the use of the new -X parameter for BER encoded protocols.
svn path=/trunk/; revision=21889
2007-05-22 16:17:54 +00:00
Anders Broman f08cd1e5e3 actx in the rest of dissect_ber..()l
svn path=/trunk/; revision=21773
2007-05-15 05:49:43 +00:00
Anders Broman c01f382974 Second step in introducing asn context to BER dissectors just like in PER.
svn path=/trunk/; revision=21753
2007-05-13 20:58:29 +00:00
Anders Broman 4c692a62b6 Start introducing actx to ber functions.
svn path=/trunk/; revision=21705
2007-05-06 22:34:05 +00:00
Tomas Kukosa a70a1b3eb6 EXTERNAL type is handled in asn2wrs now
private implementations were renamed EXTERNAL -> EXTERNALt

svn path=/trunk/; revision=21662
2007-05-03 11:37:47 +00:00
Guy Harris 1bc049906a Add some GCC warnings to the standard set, and add some others to the
--enable-extra-gcc-checks set.

If we turn on -pedantic, try turning on -Wno-long-long as well, so that
it's not *so* pedantic that it rejects the 64-bit integral data types
that we explicitly require.

Constify a bunch of stuff, and make some other changes, to get rid of
warnings.

Clean up some indentation.

svn path=/trunk/; revision=21526
2007-04-23 10:59:26 +00:00
Luis Ontanon a031a39a31 Implement proposed fix for Bug 1125
svn path=/trunk/; revision=21339
2007-04-05 22:16:12 +00:00
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