By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 946 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

data structure for ARP table

P: 10
hey, im trying to replicate the ARP table which maps every mac address to a specific ip, so i can later look up a certain mac address and get its ip or vice versa. Which data structure would u recommend and can u give me some examples that i can follow
Sep 29 '10 #1
Share this Question
Share on Google+
3 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
Use two map objects. One maps mac address->ip and the other maps ip->mac address.
Sep 29 '10 #2

P: 10
any examples or tutorials i can follow?
Sep 29 '10 #3

weaknessforcats
Expert Mod 5K+
P: 9,197
I just did a Google of "C++ map example" and got 3.2 million hits.

Start there and post again if you still need help.
Sep 29 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.