[radvd-devel-l] if block is never true

Pekka Savola pekkas at netcore.fi
Tue Dec 14 07:49:07 EST 2010


On Sat, 5 Jun 2010, Reuben Hawkins wrote:
> The attached diff removes an if block which is never true due to the datatypes being compared...
> 
> iface->AdvCurHopLimit is uint_8, MAX_AdvCurHopLimit is 255 so iface->AdvCurHopLimit is never > 255.
> 
> The code can be removed unless we're expecting somebody to change the datatype or the max hop limit (which I'm assuming is not the case)...

I added this.

-- 
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings



More information about the radvd-devel-l mailing list