carlosmscabral | f40ecd1 | 2013-02-01 18:15:58 -0200 | [diff] [blame] | 1 | diff --git a/datapath/datapath.c b/datapath/datapath.c |
| 2 | index 4a4d3a2..365aa25 100644 |
| 3 | --- a/datapath/datapath.c |
| 4 | +++ b/datapath/datapath.c |
| 5 | @@ -47,6 +47,9 @@ |
| 6 | |
| 7 | #include "compat.h" |
| 8 | |
| 9 | +#ifdef CONFIG_NET_NS |
| 10 | +#include <net/net_namespace.h> |
| 11 | +#endif |
| 12 | |
| 13 | /* Strings to describe the manufacturer, hardware, and software. This data |
| 14 | * is queriable through the switch description stats message. */ |
| 15 | @@ -259,6 +262,10 @@ send_openflow_skb(const struct datapath *dp, |
| 16 | struct sk_buff *skb, const struct sender *sender) |
| 17 | { |
| 18 | return (sender |
| 19 | - ? genlmsg_unicast(skb, sender->pid) |
| 20 | +#ifdef CONFIG_NET_NS |
| 21 | + ? genlmsg_unicast(&init_net, skb, sender->pid) |
| 22 | +#else |
| 23 | + ? genlmsg_unicast(skb, sender->pid) |
| 24 | +#endif |
| 25 | : genlmsg_multicast(skb, 0, dp_mc_group(dp), GFP_ATOMIC)); |
| 26 | } |