mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 00:55:56 +00:00
![Jiří Klimeš](/assets/img/avatar_default.png)
This commit implements MAC cloning feature in NetworkManager. To support that, 'PermHwAddress' property is added into *.Device.Wired and *.Device.Wireless interfaces. The permanent MAC address is obtained when creating the device, and is used for 'locking' connections to the device. If a cloned MAC is specified in connection to be activated, the MAC is set to the interface in stage1. While disconecting, the permanent MAC is set back to the interface.
40 lines
1.2 KiB
XML
40 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
|
|
<interface name="org.freedesktop.NetworkManager.Device.Wired">
|
|
|
|
<property name="HwAddress" type="s" access="read">
|
|
<tp:docstring>
|
|
Active hardware address of the device.
|
|
</tp:docstring>
|
|
</property>
|
|
|
|
<property name="PermHwAddress" type="s" access="read">
|
|
<tp:docstring>
|
|
Permanent hardware address of the device.
|
|
</tp:docstring>
|
|
</property>
|
|
|
|
<property name="Speed" type="u" access="read">
|
|
<tp:docstring>
|
|
Design speed of the device, in megabits/second (Mb/s).
|
|
</tp:docstring>
|
|
</property>
|
|
|
|
<property name="Carrier" type="b" access="read">
|
|
<tp:docstring>
|
|
Indicates whether the physical carrier is found (e.g. whether a cable is plugged in or not).
|
|
</tp:docstring>
|
|
</property>
|
|
|
|
<signal name="PropertiesChanged">
|
|
<arg name="properties" type="a{sv}" tp:type="String_Variant_Map">
|
|
<tp:docstring>
|
|
A dictionary mapping property names to variant boxed values
|
|
</tp:docstring>
|
|
</arg>
|
|
</signal>
|
|
|
|
</interface>
|
|
</node>
|