It is a normal node, not mobile node.
i know classifier is one part of node.
but classifier can't get the node id.
if i include "node.h", it will show some error.
I think classifier is one part of node, so can't include it.
but how know, the processing classifier is in which node?
this is my problem.
Mohammed wrote:
>
>
> 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.
>> >
>> >
>
>>
>> --
>> 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.
>
>
>
--
View this message in context:
http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11722607
Sent from the ns-users mailing list archive at Nabble.com.