Home
last modified time | relevance | path

Searched refs:RTA_DST (Results 1 – 15 of 15) sorted by relevance

/linux-5.19.10/net/phonet/
Dpn_netlink.c180 if (nla_put_u8(skb, RTA_DST, dst) || in fill_route()
214 [RTA_DST] = { .type = NLA_U8 },
244 if (tb[RTA_DST] == NULL || tb[RTA_OIF] == NULL) in route_doit()
246 dst = nla_get_u8(tb[RTA_DST]); in route_doit()
/linux-5.19.10/net/decnet/
Ddn_table.c327 nla_put(skb, RTA_DST, 2, dst) < 0) in dn_fib_dump_info()
549 if (attrs[RTA_DST]) { in dn_fib_table_insert()
550 __le16 dst = nla_get_le16(attrs[RTA_DST]); in dn_fib_table_insert()
684 if (attrs[RTA_DST]) { in dn_fib_table_delete()
685 __le16 dst = nla_get_le16(attrs[RTA_DST]); in dn_fib_table_delete()
Ddn_fib.c377 if (r->rtm_type != RTN_LOCAL || !attrs[RTA_DST] || in dn_fib_create_info()
378 fi->fib_prefsrc != nla_get_le16(attrs[RTA_DST])) in dn_fib_create_info()
584 [RTA_DST] = (struct nlattr *) &dst_attr, in fib_magic()
Ddn_route.c1573 nla_put_le16(skb, RTA_DST, rt->rt_daddr) < 0) in dn_rt_fill_info()
1618 [RTA_DST] = { .type = NLA_U16 },
1666 if (tb[RTA_DST]) in dn_cache_getroute()
1667 fld.daddr = nla_get_le16(tb[RTA_DST]); in dn_cache_getroute()
/linux-5.19.10/net/mpls/
Daf_mpls.c485 [RTA_DST] = { .type = NLA_U32 },
1885 case RTA_DST: in rtm_to_route_config()
2005 if (nla_put_labels(skb, RTA_DST, 1, &label)) in mpls_dump_route()
2330 if ((tb[RTA_DST] || tb[RTA_NEWDST]) && !rtm->rtm_dst_len) { in mpls_valid_getroute_req()
2340 case RTA_DST: in mpls_valid_getroute_req()
2377 if (tb[RTA_DST]) { in mpls_getroute()
2380 if (nla_get_labels(tb[RTA_DST], 1, &label_count, in mpls_getroute()
2485 if (nla_put_labels(skb, RTA_DST, 1, &in_label)) in mpls_getroute()
/linux-5.19.10/net/mctp/
Droute.c1149 [RTA_DST] = { .type = NLA_U8 },
1174 if (!tb[RTA_DST]) { in mctp_route_nlparse()
1178 *daddr_start = nla_get_u8(tb[RTA_DST]); in mctp_route_nlparse()
1299 if (nla_put_u8(skb, RTA_DST, rt->min)) in mctp_fill_rtinfo()
/linux-5.19.10/net/ipv4/
Dipmr.c2321 nla_put_in_addr(skb, RTA_DST, c->mfc_mcastgrp)) in ipmr_fill_mroute()
2488 (tb[RTA_DST] && !rtm->rtm_dst_len)) { in ipmr_rtm_valid_getroute_req()
2499 case RTA_DST: in ipmr_rtm_valid_getroute_req()
2528 grp = tb[RTA_DST] ? nla_get_in_addr(tb[RTA_DST]) : 0; in ipmr_rtm_getroute()
2602 [RTA_DST] = { .type = NLA_U32 },
2667 case RTA_DST: in rtm_to_ipmr_mfcc()
Droute.c2979 if (nla_put_in_addr(skb, RTA_DST, dst)) in rt_fill_info()
3260 (tb[RTA_DST] && !rtm->rtm_dst_len)) { in inet_rtm_valid_getroute_req()
3273 case RTA_DST: in inet_rtm_valid_getroute_req()
3315 dst = tb[RTA_DST] ? nla_get_in_addr(tb[RTA_DST]) : 0; in inet_rtm_getroute()
Dfib_frontend.c659 [RTA_DST] = { .type = NLA_U32 },
770 case RTA_DST: in rtm_to_fib_config()
Dfib_semantics.c1797 nla_put_in_addr(skb, RTA_DST, fri->dst)) in fib_dump_info()
/linux-5.19.10/include/uapi/linux/
Drtnetlink.h362 RTA_DST, enumerator
/linux-5.19.10/tools/testing/selftests/net/
Dudpgso.c394 rta->rta_type = RTA_DST; in set_route_mtu()
Dipsec.c408 if (rtattr_pack(&req.nh, sizeof(req), RTA_DST, &dst, sizeof(dst))) in ip4_route_set()
/linux-5.19.10/net/ipv6/
Droute.c5065 if (tb[RTA_DST]) { in rtm_to_fib6_config()
5068 if (nla_len(tb[RTA_DST]) < plen) in rtm_to_fib6_config()
5071 nla_memcpy(&cfg->fc_dst, tb[RTA_DST], plen); in rtm_to_fib6_config()
5652 if (nla_put_in6_addr(skb, RTA_DST, dest)) in rt6_fill_node()
5656 if (nla_put_in6_addr(skb, RTA_DST, &rt6_dst->addr)) in rt6_fill_node()
5988 (tb[RTA_DST] && !rtm->rtm_dst_len)) { in inet6_rtm_valid_getroute_req()
5999 case RTA_DST: in inet6_rtm_valid_getroute_req()
6047 if (tb[RTA_DST]) { in inet6_rtm_getroute()
6048 if (nla_len(tb[RTA_DST]) < sizeof(struct in6_addr)) in inet6_rtm_getroute()
6051 fl6.daddr = *(struct in6_addr *)nla_data(tb[RTA_DST]); in inet6_rtm_getroute()
Dip6mr.c2377 nla_put_in6_addr(skb, RTA_DST, &c->mf6c_mcastgrp)) in ip6mr_fill_mroute()