Skip to content

Adding "flags" to IP addresses

real xiaoyang requested to merge (removed):main into main

test: Adding "flags" to IP addresses is passed through DBUS, making it easier for upper level applications to distinguish between temporary addresses,local link addresses, and ipv6 addresses. For example, using ifconfig can see multiple IPv6 addresses, but the NetworkManager caller cannot distinguish between these IP addresses.

The following is the execution result of 'ifconfig':

wlx200db01ffe4c: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.8.204  netmask 255.255.255.0  broadcast 192.168.8.255
        inet6 fd5c:78f8:7354:6f00:c390:656f:edc4:72bf  prefixlen 64  scopeid 0x0<global>
        inet6 2408:8411:9068:b5a:fc84:cada:c3e6:48ff  prefixlen 64  scopeid 0x0<global>
        inet6 2408:8411:9068:b5a:5c78:f873:546f:2  prefixlen 128  scopeid 0x0<global>
        inet6 fe80::45e9:5fd6:2ca7:1d38  prefixlen 64  scopeid 0x20<link>
        inet6 fd5c:78f8:7354:6f00:fc84:cada:c3e6:48ff  prefixlen 64  scopeid 0x0<global>
        inet6 2408:8411:9068:b5a:4bb0:82f3:8795:e09c  prefixlen 64  scopeid 0x0<global>
        ether 20:0d:b0:1f:fe:4c  txqueuelen 1000  (以太网)
        RX packets 110  bytes 25381 (25.3 KB)
        RX errors 0  dropped 62  overruns 0  frame 0
        TX packets 205  bytes 40495 (40.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Merge request reports