Skip to content

Commit

Permalink
Merge pull request #204 from jetomit/fix-ip6-forwarding-check
Browse files Browse the repository at this point in the history
Fix IP6 forwarding test
  • Loading branch information
robbat2 authored Mar 1, 2023
2 parents 2f984cb + d97b892 commit f67335b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion send.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ static int send_ra(int sock, struct Interface *iface, struct in6_addr const *des
struct safe_buffer *ra_hdr = new_safe_buffer();
// if forwarding is disabled, send zero router lifetime
// the check_ip6 function is hoisted here to enable testing of add_ra_header
int cease_adv = iface->state_info.cease_adv || !check_ip6_forwarding();
int cease_adv = iface->state_info.cease_adv || check_ip6_forwarding();
add_ra_header(ra_hdr, &iface->ra_header_info, cease_adv);
// Build RA option list
struct safe_buffer_list *ra_opts = build_ra_options(iface, dest);
Expand Down

0 comments on commit f67335b

Please sign in to comment.