]>
git.proxmox.com Git - ovs.git/blob - datapath/compat.h
2 * Copyright (c) 2007-2015 Nicira, Inc.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 2 of the GNU General Public
6 * License as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 #include <linux/in_route.h>
24 #include <linux/netlink.h>
26 #include <net/route.h>
28 #include <net/netfilter/ipv6/nf_defrag_ipv6.h>
29 #include <net/netfilter/nf_conntrack_count.h>
31 /* Fix grsecurity patch compilation issue. */
32 #ifdef CONSTIFY_PLUGIN
33 #include <linux/cache.h>
38 /* Even though vanilla 3.10 kernel has grp->id, RHEL 7 kernel is missing
40 #ifdef HAVE_GENL_MULTICAST_GROUP_WITH_ID
41 #define GROUP_ID(grp) ((grp)->id)
43 #define GROUP_ID(grp) 0
46 #ifdef HAVE_NF_IPV6_OPS_FRAGMENT
47 static inline int __init
ip6_output_init(void) { return 0; }
48 static inline void ip6_output_exit(void) { }
50 int __init
ip6_output_init(void);
51 void ip6_output_exit(void);
54 static inline int __init
compat_init(void)
62 err
= nf_ct_frag6_init();
64 goto error_ipfrag_exit
;
66 err
= ip6_output_init();
68 goto error_frag6_exit
;
70 err
= rpl_nf_conncount_modinit();
72 goto error_nf_conncount_exit
;
76 error_nf_conncount_exit
:
77 rpl_nf_conncount_modexit();
79 nf_ct_frag6_cleanup();
84 static inline void compat_exit(void)
86 rpl_nf_conncount_modexit();
88 nf_ct_frag6_cleanup();