[Click] ipaddress and matches prefix
John Bicket
jbicket at mit.edu
Tue Jul 22 14:11:31 EDT 2003
Hi Eddie,
I was having trouble with some ndp stuff in ip6 with click,
but I tracked the code down to ipaddress.hh:
It seems like matches_prefix should be something like matches_mask
instead..
--john
Index: ipaddress.hh
===================================================================
RCS file: /home/am0/click/cvsroot/release/one/include/click/ipaddress.hh,v
retrieving revision 1.24
diff -c -r1.24 ipaddress.hh
*** ipaddress.hh 6 Aug 2002 00:52:12 -0000 1.24
--- ipaddress.hh 22 Jul 2003 17:04:27 -0000
***************
*** 143,149 ****
inline bool
IPAddress::matches_prefix(IPAddress a, IPAddress mask) const
{
! return (addr() & mask.addr()) == a.addr();
}
inline bool
--- 143,149 ----
inline bool
IPAddress::matches_prefix(IPAddress a, IPAddress mask) const
{
! return (addr() & mask.addr()) == (a.addr() & mask.addr());
}
inline bool
More information about the click
mailing list