data structure for ARP table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • darko
    New Member
    • Sep 2006
    • 10

    #1

    data structure for ARP table

    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
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Use two map objects. One maps mac address->ip and the other maps ip->mac address.

    Comment

    • darko
      New Member
      • Sep 2006
      • 10

      #3
      any examples or tutorials i can follow?

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        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.

        Comment

        Working...