Home
last modified time | relevance | path

Searched refs:rtnh_len (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/include/net/
Drtnh.h11 rtnh->rtnh_len >= sizeof(*rtnh) && in rtnh_ok()
12 rtnh->rtnh_len <= remaining; in rtnh_ok()
18 int totlen = NLA_ALIGN(rtnh->rtnh_len); in rtnh_next()
31 return rtnh->rtnh_len - NLA_ALIGN(sizeof(*rtnh)); in rtnh_attrlen()
/linux-6.12.1/include/uapi/linux/
Drtnetlink.h410 unsigned short rtnh_len; member
433 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \
434 ((int)(rtnh)->rtnh_len) <= (len))
435 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
/linux-6.12.1/net/ipv4/
Dipmr_base.c256 nhp->rtnh_len = sizeof(*nhp); in mr_fill_mroute()
Dfib_semantics.c1728 rtnh->rtnh_len = nlmsg_get_pos(skb) - (void *)rtnh; in fib_add_nexthop()
/linux-6.12.1/net/mpls/
Daf_mpls.c2062 rtnh->rtnh_len = nlmsg_get_pos(skb) - (void *)rtnh; in mpls_dump_route()