Skip to content

Commit

Permalink
Merge pull request FRRouting#16876 from opensourcerouting/fix/ZEBRA_S…
Browse files Browse the repository at this point in the history
…EG6_LOCAL_ACTION_END_DX6_should_put_full_inaddr6

zebra: Send a correct size of ctx->nh6 for SRv6 SEG6_LOCAL_ACTION_END_DX6
  • Loading branch information
donaldsharp committed Sep 20, 2024
2 parents 40c9d64 + 73d01a8 commit 65609a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zebra/rt_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ static bool _netlink_route_build_singlepath(const struct prefix *p,
return false;
if (!nl_attr_put(nlmsg, req_size,
SEG6_LOCAL_NH6, &ctx->nh6,
sizeof(struct in_addr)))
sizeof(struct in6_addr)))
return false;
break;
case ZEBRA_SEG6_LOCAL_ACTION_END_DT6:
Expand Down Expand Up @@ -2979,7 +2979,7 @@ ssize_t netlink_nexthop_msg_encode(uint16_t cmd,
if (!nl_attr_put(&req->n, buflen,
SEG6_LOCAL_NH6,
&ctx->nh6,
sizeof(struct in_addr)))
sizeof(struct in6_addr)))
return 0;
break;
case SEG6_LOCAL_ACTION_END_DT6:
Expand Down

0 comments on commit 65609a6

Please sign in to comment.