mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 16:00:21 +01:00
platform: avoid global buffer for nm_platform_link_inet6_addrgenmode2str()
This commit is contained in:
parent
cc38b36f8c
commit
98e476fe4d
1 changed files with 2 additions and 1 deletions
|
|
@ -7511,10 +7511,11 @@ link_set_user_ipv6ll_enabled(NMPlatform *platform, int ifindex, gboolean enabled
|
|||
{
|
||||
nm_auto_nlmsg struct nl_msg *nlmsg = NULL;
|
||||
guint8 mode = enabled ? NM_IN6_ADDR_GEN_MODE_NONE : NM_IN6_ADDR_GEN_MODE_EUI64;
|
||||
char sbuf[100];
|
||||
|
||||
_LOGD("link: change %d: user-ipv6ll: set IPv6 address generation mode to %s",
|
||||
ifindex,
|
||||
nm_platform_link_inet6_addrgenmode2str(mode, NULL, 0));
|
||||
nm_platform_link_inet6_addrgenmode2str(mode, sbuf, sizeof(sbuf)));
|
||||
|
||||
if (!nm_platform_kernel_support_get(NM_PLATFORM_KERNEL_SUPPORT_TYPE_USER_IPV6LL)) {
|
||||
_LOGD("link: change %d: user-ipv6ll: not supported", ifindex);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue