I understand from your query that you want to know the current execution mobile
node , is it that write?
From the error message you get, means net_id variable not found(not declare)
so may be the data structure (procedure) you deal with node identification does
not handle , so I advice you to read the structure more times, may the point
will be clear.
Mohammed AbuHajar
rubenjy <[EMAIL PROTECTED]> wrote:
thanks for your replay
it also show 'net_id' undeclared (first function)
error: (Each undeclared identifier is reported only once for each
function it appears in. )
2007/7/19, Mohammed Abu Hajar :
> Try this:
>
> printf("net_id = %d",net_id.getNSAddr_t());
>
> Mohammed AbuHajar
>
> rubenjy wrote:
>
>
> when i use the code in classifier.cc
> printf("net_id = %s",net_id.dump());
>
> it show "net_id" undeclared.
>
>
>
> Mohammed wrote:
> >
> >
> > through net_id.dump()
> >
> > in other words use: printf("net_id = %s",net_id.dump());
> >
> > rubenjy wrote:
> >
> >
> > hello,
> > i want to get node id in classifier.cc
> > i don't know how to get node id.
> > so i include node.h and write code (follow)
> >
> > Node* tempnode;
> > int ttmp;
> > if (tempnode){
> > ttmp=tempnode->address();
> > ttmp=tempnode->nodeid();
> > }
> >
> > but it had segmentation fault(core dumped).
> > i used gdb to trace it.
> > gdb show program received signal SIGILL, Illegal instruction
> >
> > somebody can tell me how to get node id ?
> > --
> > View this message in context:
> >
> http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11671028
> > Sent from the ns-users mailing list archive at Nabble.com.
> >
> >
> >
> >
> > ---------------------------------
> > Building a website is a piece of cake.
> > Yahoo! Small Business gives you all the tools to get online.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11674298
> Sent from the ns-users mailing list archive at Nabble.com.
>
>
>
>
> ________________________________
> Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
> and lay it on us.
>
>
---------------------------------
Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.