Skip to content
  • Thomas Haller's avatar
    all: avoid byte ordering issue for IP4Config's Nameservers/WinsServers on D-Bus · 4eeb4b1b
    Thomas Haller authored
    Some properties in NetworkManager's D-Bus API are IPv4 addresses
    in network byte order (big endian). That is problematic.
    
    It is no problem, when the NetworkManager client runs on the same
    host. That is the case with libnm, which does not support to be used
    remotely for the time being.
    
    It is a problem for an application that wants to access the D-Bus
    interface of NetworkManager remotely. Possibly, such an application
    would be implemented in two layers:
    
     - one layer merely remotes D-Bus, without specific knowledge of
       NetworkManager's API.
    
     - a higher layer which accesses the remote D-Bus interface of NetworkManager.
       Preferably it does so in an agnostic way, regardless of whether it runs
       locally or remotely.
    
    When using a D-Bus library, all accesses to 32 bit integers are in
    native endianness (regardless of how the integer is actually encoded
    on the lower layers). Likewise, D-Bus does not support annotating integer
    t...
    4eeb4b1b