summaryrefslogtreecommitdiff
path: root/datapath/linux-2.6/compat-2.6/include/net/checksum.h
blob: c64c6bd0c934913d21d5b10c6c6e830f60ef7d92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __NET_CHECKSUM_WRAPPER_H
#define __NET_CHECKSUM_WRAPPER_H 1

#include_next <net/checksum.h>

#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)

static inline __wsum csum_unfold(__sum16 n)
{
	return (__force __wsum)n;
}

#endif /* linux kernel < 2.6.20 */

#endif /* checksum.h */