Skip to content

Commit

Permalink
zebra: avoiding build error on *bsd again
Browse files Browse the repository at this point in the history
Signed-off-by: Yamato Sugawara <yamato.sugawara@linecorp.com>
  • Loading branch information
Drumato committed Nov 9, 2021
1 parent 8570738 commit 341f19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra/zebra_srv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ separate_locator_prefix_into_chunk(struct srv6_locator *loc,
{
struct prefix_ipv6 chunk_prefix = loc->prefix;
chunk_prefix.prefixlen += loc->perchunk_bits_length;
chunk_prefix.prefix.s6_addr16[4] = htons(chunk_index);
chunk_prefix.prefix.s6_addr32[2] = (uint32_t)htons(chunk_index);
return chunk_prefix;
}

Expand Down

0 comments on commit 341f19e

Please sign in to comment.