Searched refs:mx (Results 1 – 2 of 2) sorted by relevance
/net/ipv4/ |
D | fib_frontend.c | 466 static int put_rtax(struct nlattr *mx, int len, int type, u32 value) in put_rtax() argument 470 nla = (struct nlattr *) ((char *) mx + len); in put_rtax() 599 struct nlattr *mx; in rtentry_to_fib_config() local 602 mx = kcalloc(3, nla_total_size(4), GFP_KERNEL); in rtentry_to_fib_config() 603 if (!mx) in rtentry_to_fib_config() 607 len = put_rtax(mx, len, RTAX_ADVMSS, rt->rt_mtu - 40); in rtentry_to_fib_config() 610 len = put_rtax(mx, len, RTAX_WINDOW, rt->rt_window); in rtentry_to_fib_config() 613 len = put_rtax(mx, len, RTAX_RTT, rt->rt_irtt << 3); in rtentry_to_fib_config() 615 cfg->fc_mx = mx; in rtentry_to_fib_config()
|
/net/core/ |
D | rtnetlink.c | 751 struct nlattr *mx; in rtnetlink_put_metrics() local 758 mx = nla_nest_start_noflag(skb, RTA_METRICS); in rtnetlink_put_metrics() 759 if (mx == NULL) in rtnetlink_put_metrics() 789 nla_nest_cancel(skb, mx); in rtnetlink_put_metrics() 793 return nla_nest_end(skb, mx); in rtnetlink_put_metrics() 796 nla_nest_cancel(skb, mx); in rtnetlink_put_metrics()
|