[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] [Urgent Help]How can I get the destiation address



see ~ns/trace.cc for void Trace::format(...):
  get ip header: hdr_ip *iph = hdr_ip::access(p);
  get dest addr: iph->daddr()
  convert to string: char *dst_nodeaddr =
                     Address::instance().print_nodeaddr(iph->daddr());

- difa

On Wed, 14 Nov 2001, [ks_c_5601-1987] ������ wrote:

> from the incoming packet?
>
> Please let me know as soon as possible.
>
> I need to know the destiation node address from the packet header.
>
> The node is the destination node number defined in the tcl file.
>
> Please give me the example of code level source.
>
> Thank you in advance.
>
> Byeongsoo Yun
>
> KNU Korea
>
>
>
>