Searched refs:rtnexthop (Results 1 – 3 of 3) sorted by relevance
7 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) in rtnh_ok()14 static inline struct rtnexthop *rtnh_next(const struct rtnexthop *rtnh, in rtnh_next()20 return (struct rtnexthop *) ((char *) rtnh + totlen); in rtnh_next()23 static inline struct nlattr *rtnh_attrs(const struct rtnexthop *rtnh) in rtnh_attrs()28 static inline int rtnh_attrlen(const struct rtnexthop *rtnh) in rtnh_attrlen()
38 struct rtnexthop *fc_mp;
305 struct rtnexthop { struct322 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument324 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))325 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))