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

Re: [ns] ns_addr_t ?




try instead
hdrip->dst() = (ns_addr_t)atoi(argv[2])
this should do the trick

> I want to assing a value to the ip parameter of IP header (dst_) but he
> generate a compiler error .my declaration is the following :
> /****************************************************/
> hdr_ip* hdrip = (hdr_ip*)pkt->access(off_ip_);
> 
> hdrip->dst_ = atoi(argv[2])
> /*****************************************************/
> he generate the following error
> /**************************************/
> no match for `ns_addr_t & = int'
> /**************************************/
> How can I do That?

-- 
Lucas Barri�re

[email protected]
http://aemiaif.lip6.fr/etudiants/lucas
UNIX is user-friendly. it's just selective about who its friends are.