A MibTable::prepare_set_request() question
Alex Finogenov
afinogenov____malibunet.com
Wed Aug 22 04:57:23 CEST 2001
Frank and Jochen,
I have noticed, that a create request on a table with a required
no-default-value column of an unsigned int type FAILS when the value of the
column's varbind is 0, even though it is a valid value and varbinds for all
other required columns are present with respectively valid values.
The culprit seems to be the statement:
if(!l->valid() && (l->get_value() == pvbs[i]))
{
...
return FALSE;
}
It is located inside MibTable::ready(), that is invoked at the end of
MibTable::check_creation(), that is called by
MibTable::prepare_set_request(). At the time of the failure the leaf is NOT
valid because it is not a DEFVAL and has not passed through
MibTable::commit_set_request(). Since the initial value for it is 0, and it
equals to the new value (pvbs[i]), the condition fails altogether.
Do you have any comments or suggestions?
Thanks,
Alex
More information about the AGENTPP
mailing list