LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2011, 06:05 AM   #1
shanky
Member
 
Registered: Aug 2011
Posts: 155

Rep: Reputation: Disabled
Unhappy Address overflow!!


hello

i am simulating mesh networks 802.11s in ns-3 .i wanted to run simulation using over 1000 nodes but this is not possible since it shows me address overflow.this is a part of my code

Ipv4AddressHelper address;
address.SetBase ("10.1.1.0", "255.255.255.0");

and i get the error

assert failed. cond="m_address <= m_max", msg="Ipv4AddressHelper::NewAddress(): Address overflow", file=../src/
internet/helper/ipv4-address-helper.cc, line=108

i then made the following change
address.SetBase ("10.1.1.0", "255.255.255.0");
into this
address.SetBase ("10.1.1.0", "255.255.252.0");

thinking this would give enable me to use more nodes but again i am shown an error

"assert failed. cond="(m_network & ~m_mask) == 0",
msg="Ipv4AddressHelper::SetBase(): Inconsistent network and mask",
file=../src/internet/helper/ipv4-address-helper.cc, line=75 "

please help me out.i do not have much knowledge of ip networking and subnet masking.would be of great help if you can guide me.

thanks a lot!!
 
Old 11-14-2011, 06:55 AM   #2
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
i think i solved it
i changed it to address.SetBase ("10.0.0.0", "255.255.252.0");

works for 30x30 grid..but doesnt work out for 50x50 ..any suggestions for to get it working for even larger number of nodes??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stack Overflow primenu Programming 4 02-07-2010 04:57 AM
Heap overflow:.. primenu Programming 8 02-01-2010 05:30 PM
memory overflow venusian Linux - General 3 03-02-2006 02:21 PM
buffer overflow, finding return address using gdb true_atlantis Linux - Security 9 10-31-2004 06:46 PM
spool overflow wedgeworth Linux - Software 1 01-06-2004 12:58 PM


All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration