summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/include/net/nexthop.h
diff options
context:
space:
mode:
Diffstat (limited to 'ANDROID_3.4.5/include/net/nexthop.h')
-rw-r--r--ANDROID_3.4.5/include/net/nexthop.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/ANDROID_3.4.5/include/net/nexthop.h b/ANDROID_3.4.5/include/net/nexthop.h
deleted file mode 100644
index 3334dbfa..00000000
--- a/ANDROID_3.4.5/include/net/nexthop.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef __NET_NEXTHOP_H
-#define __NET_NEXTHOP_H
-
-#include <linux/rtnetlink.h>
-#include <net/netlink.h>
-
-static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining)
-{
- return remaining >= sizeof(*rtnh) &&
- rtnh->rtnh_len >= sizeof(*rtnh) &&
- rtnh->rtnh_len <= remaining;
-}
-
-static inline struct rtnexthop *rtnh_next(const struct rtnexthop *rtnh,
- int *remaining)
-{
- int totlen = NLA_ALIGN(rtnh->rtnh_len);
-
- *remaining -= totlen;
- return (struct rtnexthop *) ((char *) rtnh + totlen);
-}
-
-static inline struct nlattr *rtnh_attrs(const struct rtnexthop *rtnh)
-{
- return (struct nlattr *) ((char *) rtnh + NLA_ALIGN(sizeof(*rtnh)));
-}
-
-static inline int rtnh_attrlen(const struct rtnexthop *rtnh)
-{
- return rtnh->rtnh_len - NLA_ALIGN(sizeof(*rtnh));
-}
-
-#endif