Lines Matching full:gateway
859 READ_ONCE(rt->dev->net) : rt->gateway.net; in mctp_route_netid()
983 daddr = rt->gateway.eid; in mctp_route_lookup()
1196 * rt->gateway. Other fields will be populated.
1208 if (rt->dst_type == MCTP_ROUTE_GATEWAY && !rt->gateway.eid) in mctp_route_add()
1406 * For gateway routes (which have a RTA_GATEWAY, and no RTA_OIF), we populate
1416 struct mctp_fq_addr *gateway = NULL; in mctp_route_nlparse_common() local
1438 gateway = nla_data(tb[RTA_GATEWAY]); in mctp_route_nlparse_common()
1440 if (ifindex && gateway) { in mctp_route_nlparse_common()
1442 "cannot specify both ifindex and gateway"); in mctp_route_nlparse_common()
1456 } else if (gateway) { in mctp_route_nlparse_common()
1457 if (!mctp_address_unicast(gateway->eid)) { in mctp_route_nlparse_common()
1458 NL_SET_ERR_MSG(extack, "bad gateway"); in mctp_route_nlparse_common()
1462 gatewayp->eid = gateway->eid; in mctp_route_nlparse_common()
1463 gatewayp->net = gateway->net != MCTP_NET_ANY ? in mctp_route_nlparse_common()
1464 gateway->net : in mctp_route_nlparse_common()
1569 rt->gateway.eid = gw.eid; in mctp_route_nlparse_populate()
1570 rt->gateway.net = gw.net; in mctp_route_nlparse_populate()
1678 sizeof(rt->gateway), &rt->gateway)) in mctp_fill_rtinfo()