--- Dave Shield <[EMAIL PROTECTED]> 写道:
> IP addresses are represented as *binary* strings,
> of four integer values.
in rfc3812,my blueprint,this ip address is declared as
an octet string.
i had been unfamiliar with this "octet string".
i tried to use the mfd template to generate the code
and saw that
char mplsTunnelARHopIpAddr[32];
IT IS FOR the IPv4/6 capable implementation.
so now i can understand why it should be [32]
octet string == binary string
right?
:-)
> Try
>
> structure mplsTunnelARHopTable {
> :
> char mplsTunnelARHopIpAddr[4];
> :
> }
> and
> newrow->mplsTunnelARHopIpAddr[0] = 10;
> newrow->mplsTunnelARHopIpAddr[1] = 10;
> :
i went with the structure above
thx Dave
however just as i mentioned in my new mail,
if i try to get an entry that does not exist in the
single list,the agent crashs.
or if i snmpwalk the table,after all the entris have
returned ,the agent crashs.
and snmptable does not work at all.
is it the symptom that the agent cannot deal with the
end of the single list correctly?
but in my opinion the template code have already done
this check or something for me.
snmpwalk is actually a GET request and a bulk of
GETNEXT.
i guess the problem is here:
when i reach the last row,last column,the handler does
not know the table have finished .
it goes on GETNEXT,equaling to get a row that does not
exist. so ^*&^*^%&^*(&... DOWN.
i can find where is the problem,but have no idea how
to fix it.
any clue ,please?
_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users