buglwIP - A Lightweight TCP/IP stack - Bugs: bug #25636, SNMPSET value is ignored for...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #25636: SNMPSET value is ignored for integer fields

Submitted by:  Jesus Alvarez <jesus_alvarez>
Submitted on:  Thu 19 Feb 2009 04:27:49 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: 1.3.0

Sat 02 May 2009 03:46:28 PM UTC, comment #1:

From reading the code, I think you're right (maybe that part is not used at Axxon?). I cannot test that however: I don't yet have implemented an external MIB (although I plan to do so). I've checked it in since it is used like that in other places, too. I'll stumble over it again if it doesn't work (since I have to do the private MIB part some time).

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 19 Feb 2009 04:27:49 AM UTC, original submission:

The set_value function used to process SNMPSET requests with integer data ignores the data value on the request and always uses a NULL value. This only impacts custom MIBs since all integer fields on the base MIBs are read-only.

The following change appears to correct this.

msg_in.c msg_in.c.old
594,595c594

+ en->set_value_a(request_id, &msg_ps->ext_object_def,
+ msg_ps->vb_ptr->value_len,msg_ps->vb_ptr->value);

- en->set_value_a(request_id, &msg_ps->ext_object_def, 0, NULL);

Jesus Alvarez <jesus_alvarez>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by jesus_alvarez (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 02 May 2009 03:46:28 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1