On Mon, 9 May 2005 18:18:11 +0800 (CST) ericyosho wrote:
E> in rfc3812,my blueprint,this ip address is declared as
E> an octet string.
E> i had been unfamiliar with this "octet string".
E>
E> i tried to use the mfd template to generate the code
E> and saw that
E> char mplsTunnelARHopIpAddr[32]
--- 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
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
hi all ,during my code
i tried to print some messages into a txt file
i found that i could go through the get_first &
get_next routines.
now i have only one row in my table
at least i could print the right message at the bottom
of the get_next routine.i could also get my data here.
but i could
> > mplsTunnelARHopTable_get_first_data_point(... )
> > mplsTunnelARHopTable_get_next_data_point(... )
>
> Those are the ones you need to concentrate on.
> The simplest approach is probably to read in the
> table as part of the 'get_first_data_point' routine,
> and walk through the list in 'get_ne
On Fri, 2005-05-06 at 09:51, ericyosho wrote:
> > Can you request the information for one particular
> > row, or can you only walk through the whole table?
>
> we use UNIXsocket as our interface.
> each time i read the interface i will get a structure.
> and in the whole i will get a single list
--- Dave Shield <[EMAIL PROTECTED]> 写道:
> Does this other process change the number of rows
> (or their indexes)? Or are the rows fixed, and it's
> just the data for each one that's updated?
yes,the other process changes the number of rows.
> What's the interface to this other process like?
>
On Fri, 2005-05-06 at 05:53, ericyosho wrote:
> i guess that the initial function is called only once
> when the agent is up.
Which "initial function" ?
The init_xxx routines are called once, when the agent
first starts up, yes.
[Well, strictly speaking there are other times
when the agent mi
excuse me .
i am still confused with the iterate ;-(
i guess that the initial function is called only once
when the agent is up.
or it is called each time when the agent receives a
request?
> You wouldn't normally *update* the linked list.
> The iterator hook routines will *search* this list
>
On Sun, 2005-05-01 at 09:43, ericyosho wrote:
> first,initial our table in the init_... function,and
> register it correctly.
Right.
> then we usually form a linked list whose node is just
> an entry in our table.
That's not the *only* way to represent the table,
but it's certainly a valid appro
hi ,all
i saw some examples about using the iterate template,
but still got something confused.
in my thought,when using this template,we should
follow some steps:
first,initial our table in the init_... function,and
register it correctly.
then we usually form a linked list whose node is just
a
11 matches
Mail list logo