Created attachment 326072 [details]
patch fixing broken preferred lifetime display
Description of problem:
When the preferred lifetime of a prefix assigned by IPv6 autoconfiguration (router solicitation) becomes negative
Version-Release number of selected component (if applicable):
Version : 2.6.26
Release : 1.fc10
Steps to Reproduce:
1. Configure an IPv6 router to advertise a prefix with a short preferred lifetime, e.g. 0.
2. Wait for the IPv6 autoconfiguration process to complete for an interface <if> connected to a link where that router advertises.
3. Run ip -6 show dev <if>.
The preferred lifetime will have become negative, but it is printed as an unsigned integer. The preferred lifetime to be displayed will therefore be close to UINT_MAX.
The printed preferred lifetime should be negative for deprecated prefixes.
The attached patch fixes the problem.
If you are interested, you can send your patch directly to the upstream to email@example.com or I can send it for you.
Well, actually I've contacted them a couple of months ago, because I think there is some confusion in the kernel APIs regarding this matter (see <http://bugzilla.kernel.org/show_bug.cgi?id=10880>), but nobody seemed interested. It looks like developers must make the distinction I implement in the fix themselves.
I'm going to send the iproute2 maintainer a pointer to this bug report.
Stephen Hemminger also relayed me to the netdev mailing list, so that's where I've sent the patch now.
Ok, thank you. I hope someone review it soon on the list.
The patch has been incorporated into the official git tree and Stephen Hemminger told me that it would be in the 2.6.28 version of iproute2.
iproute-2.6.27-2.fc10 has been submitted as an update for Fedora 10.
2.6.27-2.fc10 solved the problem for me.
iproute-2.6.27-2.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update iproute'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-0373
iproute-2.6.27-2.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.