Home
last modified time | relevance | path

Searched refs:RTA_GATEWAY (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/net/decnet/
Ddn_fib.c184 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_get_nhs()
325 if (attrs[RTA_GATEWAY] && in dn_fib_create_info()
326 fi->fib_nh->nh_gw != nla_get_le16(attrs[RTA_GATEWAY])) in dn_fib_create_info()
334 if (attrs[RTA_GATEWAY]) in dn_fib_create_info()
335 nh->nh_gw = nla_get_le16(attrs[RTA_GATEWAY]); in dn_fib_create_info()
342 if (!attrs[RTA_GATEWAY] || nhs != 1 || attrs[RTA_OIF]) in dn_fib_create_info()
345 fi->fib_nh->nh_gw = nla_get_le16(attrs[RTA_GATEWAY]); in dn_fib_create_info()
350 if (attrs[RTA_GATEWAY] || attrs[RTA_OIF] || attrs[RTA_MULTIPATH]) in dn_fib_create_info()
Ddn_table.c238 if (attrs[RTA_OIF] || attrs[RTA_GATEWAY]) { in dn_fib_nh_match()
240 (!attrs[RTA_GATEWAY] || nla_get_le16(attrs[RTA_GATEWAY]) != fi->fib_nh->nh_gw)) in dn_fib_nh_match()
262 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_nh_match()
339 nla_put_le16(skb, RTA_GATEWAY, fi->fib_nh->nh_gw) < 0) in dn_fib_dump_info()
363 nla_put_le16(skb, RTA_GATEWAY, nh->nh_gw) < 0) in dn_fib_dump_info()
Ddn_route.c1599 nla_put_le16(skb, RTA_GATEWAY, rt->rt_gateway) < 0) in dn_rt_fill_info()
1627 [RTA_GATEWAY] = { .type = NLA_U16 },
/Linux-v4.19/net/ipv4/
Dfib_semantics.c514 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in fib_get_nhs()
680 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in fib_nh_match()
1332 nla_put_in_addr(skb, RTA_GATEWAY, fi->fib_nh->nh_gw)) in fib_dump_info()
1387 nla_put_in_addr(skb, RTA_GATEWAY, nh->nh_gw)) in fib_dump_info()
Dfib_frontend.c641 [RTA_GATEWAY] = { .type = NLA_U32 },
700 case RTA_GATEWAY: in rtm_to_fib_config()
Droute.c2654 nla_put_in_addr(skb, RTA_GATEWAY, rt->rt_gateway)) in rt_fill_info()
/Linux-v4.19/include/uapi/linux/
Drtnetlink.h320 RTA_GATEWAY, enumerator
/Linux-v4.19/net/ipv6/
Droute.c4144 [RTA_GATEWAY] = { .len = sizeof(struct in6_addr) },
4206 if (tb[RTA_GATEWAY]) { in rtm_to_fib6_config()
4207 cfg->fc_gateway = nla_get_in6_addr(tb[RTA_GATEWAY]); in rtm_to_fib6_config()
4389 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in ip6_route_multipath_add()
4520 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in ip6_route_multipath_del()
4616 if (nla_put_in6_addr(skb, RTA_GATEWAY, &rt->fib6_nh.nh_gw) < 0) in rt6_nexthop_info()
4770 nla_put_in6_addr(skb, RTA_GATEWAY, &rt6->rt6i_gateway)) in rt6_fill_node()
/Linux-v4.19/samples/bpf/
Dxdp_router_ipv4_user.c158 case RTA_GATEWAY: in read_route()