LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-17-2015, 08:59 AM   #1
preethikrishnan
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Rep: Reputation: Disabled
how to share mac parameters in routing protocol


when i try to access macSuperframeOrder in new routing protocol, i am getting segmentation fault(core dumped). kindly tell me , how to access macSuperframeOrder in my newroutingprotcol.cc and to change the value based on some condition.
 
Old 04-17-2015, 09:32 AM   #2
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 294
Blog Entries: 2

Rep: Reputation: Disabled
I'd suggest posting this in a more appropriate forum where your target audience is more likely to reply with more relevant information. Perhaps Programming or Networking. Also, it'd be worthwhile for you to post what you've tried and at what point you generate the segfault.
 
Old 04-17-2015, 10:28 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Re #2 : With probably ~2000 other ns2 postings in "Linux - Newbie", I guess it's OK here.


Re #1, @preethikrishnan : Welcome to LQ.
Tcl scripts with `Mac/802_15_4' tend to do 'Segmentation fault'.
* The examples in ns-2.3x/tcl/ex/wpan are working OK.

A couple more of OK examples : aodv_802_15_4.tcl, beacon_enabled_star.tcl :
802.15.4-examples.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing


Please read :
. http://www.linuxquestions.org/linux/...Ask_a_Question
. http://www.catb.org/~esr/faqs/smart-questions.html
I.e. some more information is required, if you want some answers.
>>>
Your code is unknown, your tcl script is unknown, etc. etc.

-
 
Old 04-20-2015, 02:01 AM   #4
preethikrishnan
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
hai.. Thanks for ur reply...

how to tune the macSuperframe order in cc code (Routing Protcol).

#include"p802_15_4mac.h"
....

struct MAC_PIB *so,s;
so=&s;

...

printf("superframe order=u \n", so-> macSuperframeOrder);
..

kindly reply the solution.. by dynamically tuning the macSuperframe order.
 
  


Reply

Tags
ns2


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
SBCA routing protocol satemadura Linux - Newbie 0 11-22-2013 11:45 PM
Zone routing protocol alagumani Linux - Wireless Networking 1 10-21-2013 02:15 AM
DSR routing protocol sants Linux - Newbie 3 05-04-2013 09:39 AM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 06:11 AM
Routing Protocol karunesh Linux - Networking 3 09-04-2002 05:24 AM


All times are GMT -5. The time now is 04:48 AM.

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