aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/sys_utils
diff options
context:
space:
mode:
authorAlex Williams <alex.williams@ni.com>2020-01-28 15:50:32 -0800
committerAaron Rossetto <aaron.rossetto@ni.com>2020-07-16 10:00:12 -0500
commit419d7dafa5c840b8aa9f056690007164de046a1d (patch)
tree7681659a80e585d3ee63f28eb7eea1780e1a708a /mpm/python/usrp_mpm/sys_utils
parenteadbc21982d6a12bc52300e6855af368b7917574 (diff)
downloaduhd-419d7dafa5c840b8aa9f056690007164de046a1d.tar.gz
uhd-419d7dafa5c840b8aa9f056690007164de046a1d.tar.bz2
uhd-419d7dafa5c840b8aa9f056690007164de046a1d.zip
mpm,mpmd: Add iface type and mtu info for UDP links
This changes MTU handling for the "internal" UDP type. Because MPM echo packets will not be returned for internal NICs, use the iface's programmed MTU instead.
Diffstat (limited to 'mpm/python/usrp_mpm/sys_utils')
-rw-r--r--mpm/python/usrp_mpm/sys_utils/net.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/sys_utils/net.py b/mpm/python/usrp_mpm/sys_utils/net.py
index 56448c6c4..42eb9de62 100644
--- a/mpm/python/usrp_mpm/sys_utils/net.py
+++ b/mpm/python/usrp_mpm/sys_utils/net.py
@@ -71,6 +71,7 @@ def get_iface_info(ifname):
'ip_addrs': ip_addrs,
'link_speed': link_speed,
'bridge': is_bridge(link_info.get_attr('IFLA_LINKINFO')),
+ 'mtu': link_info.get_attr('IFLA_MTU'),
}