From 6e4acac12fc15da81678a57df78e8d00c2d3e636 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Mon, 27 Jul 2009 18:18:12 -0700 Subject: [PATCH] Add more netns port work which is going to be added on 2.6.32 2.6.31 compiles now Signed-off-by: Luis R. Rodriguez --- compat/compat-2.6.32.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compat/compat-2.6.32.h b/compat/compat-2.6.32.h index 3a1aecd5548e..23416e46c5aa 100644 --- a/compat/compat-2.6.32.h +++ b/compat/compat-2.6.32.h @@ -20,6 +20,12 @@ * force this to always use the default init_net */ #define genl_info_net(x) &init_net +/* Just use init_net for older kernels */ +#define get_net_ns_by_pid(x) &init_net + +/* net namespace is lost */ +#define genlmsg_multicast_netns(a, b, c, d, e) genlmsg_multicast(b, c, d, e) +#define genlmsg_multicast_allns(a, b, c, d) genlmsg_multicast(a, b, c, d) #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)) */ -- 2.30.2