Lines Matching refs:mxrta
519 struct rtattr *mxrta[RTAX_MAX+1]; in print_route() local
521 parse_rtattr(mxrta, RTAX_MAX, RTA_DATA(tb[RTA_METRICS]), in print_route()
523 if (mxrta[RTAX_LOCK]) in print_route()
524 mxlock = *(unsigned*)RTA_DATA(mxrta[RTAX_LOCK]); in print_route()
529 if (mxrta[i] == NULL) in print_route()
539 val = *(unsigned*)RTA_DATA(mxrta[i]); in print_route()
710 struct rtattr * mxrta = (void*)mxbuf; in iproute_modify() local
735 mxrta->rta_type = RTA_METRICS; in iproute_modify()
736 mxrta->rta_len = RTA_LENGTH(0); in iproute_modify()
794 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_MTU, mtu); in iproute_modify()
804 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_HOPLIMIT, hoplimit); in iproute_modify()
814 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_ADVMSS, mss); in iproute_modify()
824 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_REORDERING, reord); in iproute_modify()
834 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_RTT, in iproute_modify()
843 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_RTO_MIN, in iproute_modify()
854 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_WINDOW, win); in iproute_modify()
864 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_CWND, win); in iproute_modify()
874 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_INITCWND, win); in iproute_modify()
884 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_INITRWND, win); in iproute_modify()
894 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_RTTVAR, in iproute_modify()
905 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_SSTHRESH, win); in iproute_modify()
981 if (mxrta->rta_len > RTA_LENGTH(0)) { in iproute_modify()
983 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_LOCK, mxlock); in iproute_modify()
984 addattr_l(&req.n, sizeof(req), RTA_METRICS, RTA_DATA(mxrta), RTA_PAYLOAD(mxrta)); in iproute_modify()