Red Hat Bugzilla – Bug 58146
dhcpcd still remove IFF_MULTICAST from interface flags
Last modified: 2008-05-01 11:38:01 EDT
Description of Problem: This is ongoing from bug #55093. I just took the rawhide
RPM which claims to have fixed bug #55093, and it still fails turning off multicast for
the interface in question. Looking at the code, this makes sense because at line
1175, IFF_MULTICAST is added to the interface flags, but almost immediately
after at line 1206 in the broadcast loop, it's missing again :-(
I'm not sure, but it strikes me that it would be better to use SIOCGIFFLAGS first
and save such things as the multicast state rather than unconditionally overwriting
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install rawhide dhcpcd
2. Bring up an interface using dhcpcd
3. Notice that multicast is no longer set on the interface
Interface does not show multicast.
Interface should show multicast.
This worked in Red Hat 7.1. The wierd part is that the 1.3.18pl8 code doesn't
seem to bother with the IFF_MULTICAST flag at all, yet it doesn't get reset. Is this
a change in the library/kernel code that's now killing the flag ?
Created attachment 42516 [details]
Patch to client.c to fix interface manipulation.
Attached patch that fixes the problem with the flags getting reset, at least in
my testing. This patch is against the virgin dhcpcd-1.3.21pl2 code.
applied in my package, will submit upstream as well