BIND 10 trac2902, updated. b9be6a9538f9d11946c5291e7063aaa0db990261 [2902] Fixed remote address setting in the unit tests.
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Apr 26 17:52:41 UTC 2013
The branch, trac2902 has been updated
via b9be6a9538f9d11946c5291e7063aaa0db990261 (commit)
from 39aa6489f86c5aa33e07da05c0f0be4ca2d9d9ae (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b9be6a9538f9d11946c5291e7063aaa0db990261
Author: Marcin Siodelski <marcin at isc.org>
Date: Fri Apr 26 19:52:27 2013 +0200
[2902] Fixed remote address setting in the unit tests.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcp/tests/pkt_filter_inet_unittest.cc | 2 ++
src/lib/dhcp/tests/pkt_filter_lpf_unittest.cc | 2 ++
2 files changed, 4 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/tests/pkt_filter_inet_unittest.cc b/src/lib/dhcp/tests/pkt_filter_inet_unittest.cc
index f4d1c7e..a80c064 100644
--- a/src/lib/dhcp/tests/pkt_filter_inet_unittest.cc
+++ b/src/lib/dhcp/tests/pkt_filter_inet_unittest.cc
@@ -132,6 +132,7 @@ TEST_F(PktFilterInetTest, send) {
// Set required fields.
pkt->setLocalAddr(IOAddress("127.0.0.1"));
+ pkt->setRemoteAddr(IOAddress("127.0.0.1"));
pkt->setRemotePort(PORT);
pkt->setLocalPort(PORT + 1);
pkt->setIndex(ifindex_);
@@ -210,6 +211,7 @@ TEST_F(PktFilterInetTest, receive) {
// Set required fields.
pkt->setLocalAddr(IOAddress("127.0.0.1"));
+ pkt->setRemoteAddr(IOAddress("127.0.0.1"));
pkt->setRemotePort(PORT);
pkt->setLocalPort(PORT + 1);
pkt->setIndex(ifindex_);
diff --git a/src/lib/dhcp/tests/pkt_filter_lpf_unittest.cc b/src/lib/dhcp/tests/pkt_filter_lpf_unittest.cc
index dd98840..c072488 100644
--- a/src/lib/dhcp/tests/pkt_filter_lpf_unittest.cc
+++ b/src/lib/dhcp/tests/pkt_filter_lpf_unittest.cc
@@ -145,6 +145,7 @@ TEST_F(PktFilterLPFTest, DISABLED_send) {
// in its response. The send() function should be able to detect
// it and correct the source address.
pkt->setLocalAddr(IOAddress("255.255.255.255"));
+ pkt->setRemoteAddr(IOAddress("127.0.0.1"));
pkt->setRemotePort(PORT);
pkt->setLocalPort(PORT + 1);
pkt->setIndex(ifindex_);
@@ -234,6 +235,7 @@ TEST_F(PktFilterLPFTest, DISABLED_receive) {
// Set required fields.
pkt->setLocalAddr(IOAddress("127.0.0.1"));
+ pkt->setRemoteAddr(IOAddress("127.0.0.1"));
pkt->setRemotePort(PORT);
pkt->setLocalPort(PORT + 1);
pkt->setIndex(ifindex_);
More information about the bind10-changes
mailing list