Dear Kohler,

I read the code of the ARPTable and I found something that I didn't
understand.

arptable.hh
....
struct ARPEntry {               // This structure is now larger than I'd like
        IPAddress _ip;          // (40B) but probably still fine.
        ARPEntry *_hashnext;
        EtherAddress _eth;
....

then I found 
arptable.cc
....
ARPTABLE::read_handler...
...
switch (reinterpret_cast<uintptr_t>(user_data)) {
      case h_table:
        for (Table::const_iterator it = arpt->_table.begin(); it; ++it) {
            int ok = it->unicast(now, arpt->_expire_jiffies);
            sa << it->_ip << ' ' << ok << ' ' << it->_eth << ' '
               << Timestamp::make_jiffies(now - it->_live_jiffies) << '\n';
....

I'm confuse with this code.
What is the function of ARPEntry *_hashnext; in the read_handler if the
result always "ok"?

TIA


-- 
Regards,
Fadjar Tandabawana
TST Indonesia

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click

Reply via email to