From: Norman <baz.nor...@yahoo.com>
Date: Mon, 24 Nov 2008 15:16:03 -0800 (PST)
Local: Mon, Nov 24 2008 6:16 pm
Subject: Re: 32bit address issue (ns-3.2 stable)
Hi Mathieu,
I did as you advised with Gustavo and patched internet-stack.
<diff>
void
+uint32_t
Also I had to include functionality of internet stack helper and
void
}
here how it looks:
static void
Ipv4Address myloopback("1.2.3.4");
node->AggregateObject (ipv4);
Ipv4Address ip("127.0.0.1");
>FindInterfaceForAddr(ip));
Ipv4Address addr = ipv4intf->GetAddress();
std::cout << "lo addr : " << addr << std::endl; Ipv4Address ip2("1.2.3.4");
}
Everything compiles nicely, output from program suggests that
everything works: <output> $ ./waf --run scratch/myfirst Entering directory `/wrk/ns3/ns-3.2/build' [469/513] cxx: scratch/myfirst.cc -> build/debug/scratch/myfirst_4.o [511/513] cxx_link: build/debug/scratch/myfirst_4.o -> build/debug/ scratch/myfirst Compilation finished successfully index: 1 lo: 0 lo addr : 127.0.0.1 lo: 1 lo addr : 1.2.3.4 index: 1 lo: 0 lo addr : 127.0.0.1 lo: 1 lo addr : 1.2.3.4 index: 1 lo: 0 lo addr : 127.0.0.1 lo: 1 lo addr : 1.2.3.4 Sent 1024 bytes to 1.0.1.69 </output> however routing doesn't work. I'm no longer able to send data between source and destination. Everything works without adding extra loopback: lo: 0 lo addr : 127.0.0.1 lo: 0 lo addr : 127.0.0.1 lo: 0 lo addr : 127.0.0.1 Sent 1024 bytes to 1.0.1.69 Received 1024 bytes from 1.0.1.73 Received 1024 bytes from 1.0.1.69 Function AddIpv4Stack2() looks than like this:
//Ipv4Address myloopback("1.2.3.4");
node->AggregateObject (ipv4);
Ipv4Address ip("127.0.0.1");
>FindInterfaceForAddr(ip));
Ipv4Address addr = ipv4intf->GetAddress();
std::cout << "lo addr : " << addr << std::endl; //Ipv4Address ip2("1.2.3.4");
}
My personal observation is that the same type of symptom (lack of
routing) is same for three different (separate) type of configurations: 1. Adding an extra loopback (as described above) 2. Adding second IP address to the same interface (this is unsupported as you pointed out Mathieu) 3. Adding a sort of pseudo-interface (additional csma or p2p) to act as loopback and addressing it with /32 (as I described in my initial email). All three scenarios are failing in the same way - routing is broken.
Is there anything else I can try?
Many 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.
| ||||||||||||||