Home
last modified time | relevance | path

Searched refs:rtnexthop (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/netlink/route/
H A Droute.h333 struct rtnexthop { struct
355 #define RTNH_HDRLEN ((int)sizeof(struct rtnexthop)) argument
359 #define RTNH_NEXT(_nh) ((struct rtnexthop *)((char *)(_nh) + _RTNH_ALIGNED_LEN(_nh)))
H A Drt.c197 struct rtnexthop *rtnh = nlmsg_reserve_object(nw, struct rtnexthop); in dump_rc_nhg()
209 rtnh = nlattr_restore_offset(nw, nh_off, struct rtnexthop); in dump_rc_nhg()
404 #define _IN(_field) offsetof(struct rtnexthop, _field)
426 NL_DECLARE_PARSER_EXT(mpath_parser, struct rtnexthop, NULL, nlf_p_rtnh, nla_p_rtnh, post_p_rtnh);
438 struct rtnexthop *rtnh; in nlattr_get_multipath()
444 max_nhops = data_len / sizeof(struct rtnexthop); in nlattr_get_multipath()
449 for (rtnh = (struct rtnexthop *)(nla + 1); data_len > 0; ) { in nlattr_get_multipath()
469 rtnh = (struct rtnexthop *)((char *)rtnh + len);
/freebsd/sys/netlink/
H A Dnetlink_snl_route_parsers.h58 #define _IN(_field) offsetof(struct rtnexthop, _field)
88 SNL_DECLARE_PARSER_EXT(_mpath_nh_parser, sizeof(struct rtnexthop),
103 while (start_size < NLA_DATA_LEN(nla) / sizeof(struct rtnexthop)) in nlattr_get_multipath()