ARP cache

341 views
Skip to first unread message

vikas kumar pushkar IITG

unread,
Mar 23, 2012, 10:57:21 AM3/23/12
to ns-3-users
Can Anybody please tell me how can i show arp cache entries of each
node ......i tried it but no luck till now .

John Abraham

unread,
Mar 24, 2012, 9:06:08 AM3/24/12
to ns-3-...@googlegroups.com
1. Try to be more specific with your questions  , tell exactly what you tried, what errors got you stuck
2. If you plan to modify ns-3, go through every example that is provided until you are familiar with
    a. Smart Pointers
    b. Callbacks
    c. Tracing system
    d. Attribute system
    e. Logging system 
    f. waf and wscript
    g. Aggregation
    h. Complete tutorial
    Without being familiar with the above, you may not be very productive with modifying ns-3

in any case:
replace the attached files in a new workspace.







On Fri, Mar 23, 2012 at 7:57 AM, vikas kumar pushkar IITG <vikasku...@gmail.com> wrote:
Can Anybody please tell me how can i show arp cache entries of each
node ......i tried it but no luck till now .

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.


third.cc
arp-cache.cc
arp-cache.h
arp-l3-protocol.cc
arp-l3-protocol.h

Vikas Pushkar

unread,
Apr 2, 2012, 10:05:20 AM4/2/12
to ns-3-...@googlegroups.com
Hi john

in the arp-cache.cc file attached in the last mail you wrote a funtion (ArpCache::Print()). i am not able to use it . i mean i am not understanding how to use it ...with my uderstanding what i did, i simply included arp-cache.h and creeated an object of ArpCahe ap. then when i am doing ap.Print() it is neither giving me an error nor result... can you please tell me how can i use it....

Thanks :)
--
vikasku...@gmail.com

"those were the best days of my life"

John Abraham

unread,
Apr 2, 2012, 10:09:56 AM4/2/12
to ns-3-...@googlegroups.com
did you run the attached "third.cc" after replacing the arp* files I attached?

Vikas Pushkar

unread,
Apr 2, 2012, 10:37:56 AM4/2/12
to ns-3-...@googlegroups.com
yeah i did that but nothing is happening

John Abraham

unread,
Apr 2, 2012, 10:57:22 AM4/2/12
to ns-3-...@googlegroups.com
I think it is a because of a recent bug , in some systems where NS_LOG_UNCOND is not working.
Just replace NS_LOG_UNCOND with std::cout in arp-cache.cc Print and in third.cc 

Vikas Pushkar

unread,
Apr 2, 2012, 2:12:40 PM4/2/12
to ns-3-...@googlegroups.com
yeah its working now

thanks  :)

anthony.s...@gmail.com

unread,
Sep 8, 2012, 7:22:29 AM9/8/12
to ns-3-...@googlegroups.com
Hi John,

I tried your code but i could not see the arp table for the router address. Any idea what could be wrong here? Thanks.
Reply all
Reply to author
Forward
0 new messages