[Xorp-cvs] XORP cvs commit: xorp/libxorp
Pavlin Radoslavov
pavlin at icir.org
Fri Aug 4 00:10:29 PDT 2006
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin at xorpc.icir.org 2006-08-04 07:10:29 UTC
XORP CVS repository
Modified files:
libxorp ipnet.hh ipvxnet.hh test_ipnet.cc test_ipv4net.cc
test_ipv6net.cc test_ipvxnet.cc
Log message:
* Reimplement the existing IPNet<A>::is_unicast() method.
Previously, the test was very liberal and returned true even for
prefixes that included some non-unicast addresses.
Now the tests logic is:
- In case of IPv4 all prefixes that fall within the Class A, Class B
or Class C address space are unicast.
- In case of IPv6 all prefixes that don't contain the multicast
address space are unicast.
- The default route (0.0.0.0/0 for IPv4 or ::/0 for IPv6)
is also considered an unicast prefix.
* Add the appropriate test cases to test the above logic.
* Add a new method for IPv4 only, and the corresponding test scenario:
IPNet<IPv4>::ip_experimental_base_prefix()
Revision Changes Path
1.25 +86 -33; commitid: be9844d2f1a47ea6; xorp/libxorp/ipnet.hh
1.14 +21 -1; commitid: be9844d2f1a47ea6; xorp/libxorp/ipvxnet.hh
1.14 +10 -14; commitid: be9844d2f1a47ea6; xorp/libxorp/test_ipnet.cc
1.17 +52 -13; commitid: be9844d2f1a47ea6; xorp/libxorp/test_ipv4net.cc
1.14 +30 -16; commitid: be9844d2f1a47ea6; xorp/libxorp/test_ipv6net.cc
1.16 +80 -17; commitid: be9844d2f1a47ea6; xorp/libxorp/test_ipvxnet.cc
More information about the Xorp-cvs
mailing list