Skip to content

Commit

Permalink
Solicited neighbour advertisement messages need to set router flag
Browse files Browse the repository at this point in the history
As dpservice acts as a router on its VF ports. Router flag needs
to be set to the solicited neighbour discovery messages as well.

Signed-off-by: Guvenc Gulce <guevenc.guelce@sap.com>
  • Loading branch information
guvenc committed May 28, 2024
1 parent 42c3602 commit dca8527
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nodes/ipv6_nd_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ static __rte_always_inline rte_edge_t get_next_index(__rte_unused struct rte_nod
req_icmp6_hdr->icmp6_type = NDISC_NEIGHBOUR_ADVERTISEMENT;
req_icmp6_hdr->icmp6_solicited = 1;
req_icmp6_hdr->icmp6_override = 1;
req_icmp6_hdr->icmp6_router = 1;
// set target lladdr option and MAC
nd_msg->opt[0] = ND_OPT_TARGET_LL_ADDR;
nd_msg->opt[1] = ND_OPT_LEN_OCTET_1;
Expand Down

0 comments on commit dca8527

Please sign in to comment.