I traced down this bug to knetworkmanager-0.7/src/knetworkmanager-
connection_setting_ipv4.cpp line 220:

cur_ip.append(QDBusData::fromUInt32(swap32((*it).netmask.toIPv4Address())));

KNetworkManager provides the netmask in decimal notation, but
NetworkManager expects it to be in CIDR-notation. I'm not comfortable
enough in this codes to provide a patch, but there is an easy workaround
you can use until this problem ist fixed. Instead of given the netmask
in dotted decimal ("255.255.255.0"), just put the CIDR value into the
first field and insert Zeros into the others: "24.0.0.0".

A patch could look like this:
UInt32 netmask_dec = (*it).netmask.toIPv4Address();
UInt32 netmask_cidr = 0; for (UInt32 bit = 1; bit != 0; bit++) {
  if (netmask_dec & bit) netmask_cidr++;
}
cur_ip.append(QDBusData::fromUInt32(swap32(netmask_cidr)));

-- 
unable to configure a fixed ip on wired interface on knetworkmanager (intrepid)
https://bugs.launchpad.net/bugs/279409
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to knetworkmanager in ubuntu.

-- 
kubuntu-bugs mailing list
kubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to