diff options
| author | Michael Biebl <biebl@debian.org> | 2020-12-06 21:57:59 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2020-12-06 21:57:59 +0100 |
| commit | 65f86e8f56267192d42f2b629fc6b0c99fb9cd0c (patch) | |
| tree | 180827692f002e5f1dad6a0fa8ca489e6bb6438f /src/platform/nm-platform.c | |
| parent | f2ddac4cbc895837ddcc55015fae112f9859cd0a (diff) | |
New upstream version 1.28.0 upstream/1.28.0
Diffstat (limited to 'src/platform/nm-platform.c')
| -rw-r--r-- | src/platform/nm-platform.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c index d1ff6fbc..7969206c 100644 --- a/src/platform/nm-platform.c +++ b/src/platform/nm-platform.c @@ -1230,11 +1230,13 @@ nm_platform_link_add(NMPlatform * self, int parent, const void * address, size_t address_len, + guint32 mtu, gconstpointer extra_data, const NMPlatformLink **out_link) { int r; char addr_buf[NM_UTILS_HWADDR_LEN_MAX * 3]; + char mtu_buf[16]; char parent_buf[64]; char buf[512]; @@ -1254,6 +1256,7 @@ nm_platform_link_add(NMPlatform * self, "\"%s\"" /* name */ "%s%s" /* parent */ "%s%s" /* address */ + "%s%s" /* mtu */ "%s" /* extra_data */ "", nm_link_type_to_string(type), @@ -1263,6 +1266,8 @@ nm_platform_link_add(NMPlatform * self, address ? ", address: " : "", address ? _nm_utils_hwaddr_ntoa(address, address_len, FALSE, addr_buf, sizeof(addr_buf)) : "", + mtu ? ", mtu: " : "", + mtu ? nm_sprintf_buf(mtu_buf, "%u", mtu) : "", ({ char *buf_p = buf; gsize buf_len = sizeof(buf); @@ -1345,7 +1350,8 @@ nm_platform_link_add(NMPlatform * self, buf; })); - return klass->link_add(self, type, name, parent, address, address_len, extra_data, out_link); + return klass + ->link_add(self, type, name, parent, address, address_len, mtu, extra_data, out_link); } /** |