Skip to content

Commit

Permalink
[posix] fix netlink address deletion on posix (openthread#9779)
Browse files Browse the repository at this point in the history
  • Loading branch information
Irving-cl authored Jan 19, 2024
1 parent a0b9ac7 commit 00076af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posix/platform/netif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ static void UpdateUnicastLinux(otInstance *aInstance, const otIp6AddressInfo &aA
memset(&req, 0, sizeof(req));

req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg));
req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_CREATE | NLM_F_EXCL;
req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | (aIsAdded ? (NLM_F_CREATE | NLM_F_EXCL) : 0);
req.nh.nlmsg_type = aIsAdded ? RTM_NEWADDR : RTM_DELADDR;
req.nh.nlmsg_pid = 0;
req.nh.nlmsg_seq = ++sNetlinkSequence;
Expand Down

0 comments on commit 00076af

Please sign in to comment.