From: Norman <baz.nor...@yahoo.com>
Date: Mon, 24 Nov 2008 05:04:12 -0800 (PST)
Local: Mon, Nov 24 2008 8:04 am
Subject: Re: 32bit address issue (ns-3.2 stable)
Hi Gustavo,
Many thanks for your suggestion.
Snip from: "src/internet-stack/ipv4-l3-protocol.cc":
Ptr<Ipv4LoopbackInterface> interface =
}
And below what I'm trying to do:
void makerid2(char *ipaddr, Ptr<Node> n) { Ptr<Ipv4LoopbackInterface> interface = CreateObject<Ipv4LoopbackInterface> (); Ptr<Ipv4StaticRouting> srt = CreateObject<Ipv4StaticRouting> (); Ipv4Address ip(ipaddr); interface->SetNode (n); interface->SetAddress (ip); interface->SetNetworkMask (0xffffffff); uint32_t index = AddIpv4Interface (interface);
}
That's the error I get once trying to run it:
[469/513] cxx: scratch/myfirst.cc -> build/debug/scratch/myfirst_4.o ../scratch/myfirst.cc: In function 'void makerid2(char*, ns3::Ptr<ns3::Node>)': ../scratch/myfirst.cc:236: error: 'AddIpv4Interface' was not declared in this scope Build failed -> task failed (err #129): [bld:///wrk/ns3/ns-3.2/scratch/ myfirst_4.o] This is because AddIpv4Interface is a private method,
Thanks,
--
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||