Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
a969ae8e
Commit
a969ae8e
authored
Jan 02, 2017
by
Nick Mathewson
👁
Browse files
test_cfmt_connected_cells: use TTL value that's above the new min.
Related to 19769.
parent
609065f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/test_cell_formats.c
View file @
a969ae8e
...
...
@@ -345,9 +345,9 @@ test_cfmt_connected_cells(void *arg)
memset
(
&
cell
,
0
,
sizeof
(
cell
));
tor_addr_parse
(
&
addr
,
"30.40.50.60"
);
rh
.
length
=
connected_cell_format_payload
(
cell
.
payload
+
RELAY_HEADER_SIZE
,
&
addr
,
1
28
);
&
addr
,
1
024
);
tt_int_op
(
rh
.
length
,
OP_EQ
,
8
);
test_memeq_hex
(
cell
.
payload
+
RELAY_HEADER_SIZE
,
"1e28323c"
"00000
08
0"
);
test_memeq_hex
(
cell
.
payload
+
RELAY_HEADER_SIZE
,
"1e28323c"
"00000
e1
0"
);
/* Try parsing it. */
tor_addr_make_unspec
(
&
addr
);
...
...
@@ -355,7 +355,7 @@ test_cfmt_connected_cells(void *arg)
tt_int_op
(
r
,
OP_EQ
,
0
);
tt_int_op
(
tor_addr_family
(
&
addr
),
OP_EQ
,
AF_INET
);
tt_str_op
(
fmt_addr
(
&
addr
),
OP_EQ
,
"30.40.50.60"
);
tt_int_op
(
ttl
,
OP_EQ
,
128
);
tt_int_op
(
ttl
,
OP_EQ
,
3600
);
/* not 1024, since we clipped to 3600 */
/* Try an IPv6 address */
memset
(
&
rh
,
0
,
sizeof
(
rh
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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