Searched refs:rtnh_encap (Results 1 – 6 of 6) sorted by relevance
/external/libnl/lib/route/ |
D | nexthop_encap.c | 32 void nh_encap_dump(struct rtnl_nh_encap *rtnh_encap, struct nl_dump_params *dp) in nh_encap_dump() argument 35 nh_encap_type2str(rtnh_encap->ops->encap_type)); in nh_encap_dump() 37 if (rtnh_encap->ops && rtnh_encap->ops->dump) in nh_encap_dump() 38 rtnh_encap->ops->dump(rtnh_encap->priv, dp); in nh_encap_dump() 41 int nh_encap_build_msg(struct nl_msg *msg, struct rtnl_nh_encap *rtnh_encap) in nh_encap_build_msg() argument 46 if (!rtnh_encap->ops || !rtnh_encap->ops->build_msg) { in nh_encap_build_msg() 51 NLA_PUT_U16(msg, RTA_ENCAP_TYPE, rtnh_encap->ops->encap_type); in nh_encap_build_msg() 57 err = rtnh_encap->ops->build_msg(msg, rtnh_encap->priv); in nh_encap_build_msg()
|
D | nexthop.c | 104 if (nh->rtnh_encap) { in rtnl_route_nh_free() 105 if (nh->rtnh_encap->ops && nh->rtnh_encap->ops->destructor) in rtnl_route_nh_free() 106 nh->rtnh_encap->ops->destructor(nh->rtnh_encap->priv); in rtnl_route_nh_free() 107 free(nh->rtnh_encap->priv); in rtnl_route_nh_free() 108 free(nh->rtnh_encap); in rtnl_route_nh_free() 131 diff |= NH_DIFF(ENCAP, nh_encap_compare(a->rtnh_encap, in rtnl_route_nh_compare() 132 b->rtnh_encap)); in rtnl_route_nh_compare() 153 nh_encap_dump(nh->rtnh_encap, dp); in nh_dump_line() 195 nh_encap_dump(nh->rtnh_encap, dp); in nh_dump_details() 253 void nh_set_encap(struct rtnl_nexthop *nh, struct rtnl_nh_encap *rtnh_encap) in nh_set_encap() argument [all …]
|
D | nh_encap_mpls.c | 107 struct rtnl_nh_encap *rtnh_encap; in rtnl_route_nh_encap_mpls() local 116 rtnh_encap = calloc(1, sizeof(*rtnh_encap)); in rtnl_route_nh_encap_mpls() 117 if (!rtnh_encap) in rtnl_route_nh_encap_mpls() 122 free(rtnh_encap); in rtnl_route_nh_encap_mpls() 129 rtnh_encap->priv = mpls_encap; in rtnl_route_nh_encap_mpls() 130 rtnh_encap->ops = &mpls_encap_ops; in rtnl_route_nh_encap_mpls() 132 nh_set_encap(nh, rtnh_encap); in rtnl_route_nh_encap_mpls()
|
D | route_obj.c | 1436 if (nh->rtnh_encap && in rtnl_route_build_msg() 1437 nh_encap_build_msg(msg, nh->rtnh_encap) < 0) in rtnl_route_build_msg() 1471 if (nh->rtnh_encap && in rtnl_route_build_msg() 1472 nh_encap_build_msg(msg, nh->rtnh_encap) < 0) in rtnl_route_build_msg()
|
/external/libnl/include/netlink-private/route/ |
D | nexthop-encap.h | 21 void nh_set_encap(struct rtnl_nexthop *nh, struct rtnl_nh_encap *rtnh_encap); 25 int nh_encap_build_msg(struct nl_msg *msg, struct rtnl_nh_encap *rtnh_encap); 27 void nh_encap_dump(struct rtnl_nh_encap *rtnh_encap, struct nl_dump_params *dp);
|
/external/libnl/include/netlink-private/ |
D | types.h | 326 struct rtnl_nh_encap * rtnh_encap; member
|