Skip to content

Commit

Permalink
sd-netlink: the kernel ignores NLM_F_APPEND in RTM_NEWNEXTHOP message…
Browse files Browse the repository at this point in the history
… but uses NLM_F_REPLACE

See insert_nexthop() in net/ipv4/nexthop.c of the kernel.
  • Loading branch information
yuwata committed Dec 14, 2023
1 parent 6814911 commit 5f6ab79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsystemd/sd-netlink/netlink-message-rtnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ int sd_rtnl_message_new_nexthop(sd_netlink *rtnl, sd_netlink_message **ret,
return r;

if (nlmsg_type == RTM_NEWNEXTHOP)
(*ret)->hdr->nlmsg_flags |= NLM_F_CREATE | NLM_F_APPEND;
(*ret)->hdr->nlmsg_flags |= NLM_F_CREATE | NLM_F_REPLACE;

nhm = NLMSG_DATA((*ret)->hdr);

Expand Down

0 comments on commit 5f6ab79

Please sign in to comment.