6ffe0cb0be4eddcbf04448239500d09bab186632
[sliver-openvswitch.git] / datapath / linux / compat / include / net / protocol.h
1 #ifndef __NET_PROTOCOL_WRAPPER_H
2 #define __NET_PROTOCOL_WRAPPER_H 1
3
4 #include_next <net/protocol.h>
5
6 #include <linux/version.h>
7 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
8 #define inet_add_protocol(prot, num) inet_add_protocol((struct net_protocol *)(prot), num)
9 #define inet_del_protocol(prot, num) inet_del_protocol((struct net_protocol *)(prot), num)
10 #endif
11
12 #endif