File: route.h

package info (click to toggle)
openvswitch 1.4.2%2Bgit20120612-9.1~deb7u1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 21,072 kB
  • sloc: sh: 115,076; ansic: 99,733; python: 12,294; xml: 2,566; perl: 674; makefile: 344; pascal: 81
file content (21 lines) | stat: -rw-r--r-- 455 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __NET_ROUTE_WRAPPER_H
#define __NET_ROUTE_WRAPPER_H 1

#include_next <net/route.h>

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

#define ip_route_output_key(net, rp, flp) \
		ip_route_output_key((rp), (flp))

#endif /* linux kernel < 2.6.25 */

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
static inline int ip4_dst_hoplimit(const struct dst_entry *dst)
{
	return dst_metric(dst, RTAX_HOPLIMIT);
}
#endif

#endif