On Sat, 2005-05-07 at 05:50, ericyosho wrote:
> strcpy(newrow->mplsTunnelARHopIpAddr,"10.10.80.198");
Nope.
IP addresses are represented as *binary* strings,
of four integer values.
Try
structure mplsTunnelARHopTable {
:
char mplsTunnelARHopIpAddr[4];
:
}
and
newrow->mplsTunnelARHopIpAddr[0] = 10;
newrow->mplsTunnelARHopIpAddr[1] = 10;
newrow->mplsTunnelARHopIpAddr[2] = 80;
newrow->mplsTunnelARHopIpAddr[3] = 198;
That's not quite right for a general IPv4/6-capable
implementation, but it should be close enough to
get you moving again.
> it seemed that when getting into the iterator hook
> routines,the agent stopped for segment fault.
Because it was expecting a four-octet IP address,
not a printable string.
Dave
-------------------------------------------------------
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