Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
b9be6a95
Commit
b9be6a95
authored
Apr 26, 2013
by
Marcin Siodelski
Browse files
[2902] Fixed remote address setting in the unit tests.
parent
39aa6489
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/tests/pkt_filter_inet_unittest.cc
View file @
b9be6a95
...
...
@@ -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_
);
...
...
src/lib/dhcp/tests/pkt_filter_lpf_unittest.cc
View file @
b9be6a95
...
...
@@ -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_
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment