Re: Question on usm_parse_security_parameters

This is a discussion on Re: Question on usm_parse_security_parameters within the SNMP Coders forums, part of the Networking and Network Related category; >>>>> On Wed, 21 Sep 2005 12:15:45 -0700 (PDT), rwilcox <mail-account-00001@...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-26-2005
Wes Hardaker
 
Posts: n/a
Default Re: Question on usm_parse_security_parameters

>>>>> On Wed, 21 Sep 2005 12:15:45 -0700 (PDT), rwilcox <mail-account-00001@sbcglobal.net> said:

rwilcox> This is a problem for me because after enginetime exceeds
rwilcox> 65535, I begin receiving REPORT-PDUs and then I see other
rwilcox> corruption I am currently attributing to this 4 byte vs 2
rwilcox> byte issue. I was going to just change it and submit a
rwilcox> patch, but usm_parse_security_parameters actually parses
rwilcox> msgAuthoritativeEngineTime as a long and then casts it to
rwilcox> u_int. So, I thought it appropriate to ask the three
rwilcox> wisemen(I'm sure there's more, just doesn't sound as
rwilcox> good)......

Err.... Ok, you're the *very first person* to ever report an
environment where an u_int is actually only 16bits. Unfortunately, I
suspect you'll find that this is hardly the only place that you'll run
into the issue. To be honest, you should probably typedef u_int to a
real 32 bit unsigned because there are a bunch of places in the code
where this is likely needed. You'll have to do the same for other
types as well. If you're lucky your compiler will let you typedef int
to something that is 32 bits as well....

--
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:21 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0