projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4989c59
)
datapath: Backport ip4_dst_hoplimit() from 2.6.38.
author
Jesse Gross
<jesse@nicira.com>
Fri, 18 Mar 2011 21:43:51 +0000
(14:43 -0700)
committer
Jesse Gross
<jesse@nicira.com>
Fri, 18 Mar 2011 22:10:04 +0000
(15:10 -0700)
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/linux-2.6/compat-2.6/include/net/route.h
patch
|
blob
|
history
diff --git
a/datapath/linux-2.6/compat-2.6/include/net/route.h
b/datapath/linux-2.6/compat-2.6/include/net/route.h
index 867f4077e33493a1d0e7eee93049e662ec9ebf59..86e8e5babb1a1ef7ce4307384af03a2e44a88727 100644
(file)
--- a/
datapath/linux-2.6/compat-2.6/include/net/route.h
+++ b/
datapath/linux-2.6/compat-2.6/include/net/route.h
@@
-11,4
+11,11
@@
#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