OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Clean the ip_sockglue.c from some ugly ifdefs
Re: [PATCH] Clean the ip_sockglue.c from some ugly ifdefs [message #22705 is a reply to message #22698] Thu, 01 November 2007 16:38 Go to previous messageGo to previous message
Pavel Emelianov is currently offline  Pavel Emelianov
Messages: 1149
Registered: September 2006
Senior Member
Arnaldo Carvalho de Melo wrote:
> Em Thu, Nov 01, 2007 at 06:52:34PM +0300, Pavel Emelyanov escreveu:
>> The #idfed CONFIG_IP_MROUTE is sometimes places inside the if-s,
>> which looks completely bad. Similar ifdefs inside the functions
>> looks a bit better, but they are also not recommended to be used.
>>
>> Provide an ifdef-ed ip_mroute_opt() helper to cleanup the code.
>>
>> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
> 
> Perhaps a better name would be ip_mroute_valid_opt()?

No :) The _valid_ mrote opts are from 0 to 8, according to MRT_XXX
macros, not from 0 to 10 as checked. I suspect this was a kind of 
reserve for future use and thus do not change this. 

Correct me if I am wrong.

> - Arnaldo

Thanks,
Pavel
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] decnet: "addr" module param can't be __initdata
Next Topic: irq0 stops working
Goto Forum:
  


Current Time: Sat Aug 23 21:58:57 GMT 2025

Total time taken to generate the page: 0.05369 seconds