]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[IPV4]: Clean the ip_sockglue.c from some ugly ifdefs
authorPavel Emelyanov <xemul@openvz.org>
Tue, 6 Nov 2007 05:32:31 +0000 (21:32 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 7 Nov 2007 12:08:55 +0000 (04:08 -0800)
commit6a9fb9479f2672fa392711735de9e642395c9a14
tree16a27c604b453ed896b5f276467a233e6b39e78a
parent4e058063f49f53f6d75f707e36c82edee6d2e919
[IPV4]: Clean the ip_sockglue.c from some ugly ifdefs

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mroute.h
net/ipv4/ip_sockglue.c