Related to bug 129840 FC4 test3 but goes back to RHEL3 and probably even earlier: python -c "from rhpl import ethtool; print ethtool.get_ipaddr('lo')" 127.00.00.01 This means we cannot use the output to popuate things like ifcfg-* because of the padded octet. up2date uses rhpl.ethtool to extract network interface information, and that information is put in RHN, and RHN tries to deploy configuration files by doing macro expansion with info from the database.
The problem seems to be in ethtool.c line 196 sprintf(ipaddr, "%02u.%02u.%02u.%02u", (unsigned int)ifr.ifr_addr.sa_data[2] % 256, (unsigned int)ifr.ifr_addr.sa_data[3] % 256, (unsigned int)ifr.ifr_addr.sa_data[4] % 256, (unsigned int)ifr.ifr_addr.sa_data[5] % 256); Is there a reason why it's doing the padding?
None that I can see. Fixed in CVS.