Lines Matching refs:mxrta
567 struct rtattr *mxrta[RTAX_MAX+1]; in print_route() local
569 parse_rtattr(mxrta, RTAX_MAX, RTA_DATA(tb[RTA_METRICS]), in print_route()
571 if (mxrta[RTAX_LOCK]) in print_route()
572 mxlock = rta_getattr_u32(mxrta[RTAX_LOCK]); in print_route()
577 if (mxrta[i] == NULL && !(mxlock & (1 << i))) in print_route()
580 if (mxrta[i] != NULL && i != RTAX_CC_ALGO) in print_route()
581 val = rta_getattr_u32(mxrta[i]); in print_route()
616 fprintf(fp, "%s ", rta_getattr_str(mxrta[i])); in print_route()
861 struct rtattr *mxrta = (void *)mxbuf; in iproute_modify() local
878 mxrta->rta_type = RTA_METRICS; in iproute_modify()
879 mxrta->rta_len = RTA_LENGTH(0); in iproute_modify()
977 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_MTU, mtu); in iproute_modify()
988 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_HOPLIMIT, hoplimit); in iproute_modify()
999 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_ADVMSS, mss); in iproute_modify()
1010 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_REORDERING, reord); in iproute_modify()
1021 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_RTT, in iproute_modify()
1031 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_RTO_MIN, in iproute_modify()
1043 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_WINDOW, win); in iproute_modify()
1054 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_CWND, win); in iproute_modify()
1065 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_INITCWND, win); in iproute_modify()
1076 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_INITRWND, win); in iproute_modify()
1090 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_FEATURES, features); in iproute_modify()
1099 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_QUICKACK, quickack); in iproute_modify()
1106 rta_addattr_l(mxrta, sizeof(mxbuf), RTAX_CC_ALGO, *argv, in iproute_modify()
1118 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_RTTVAR, in iproute_modify()
1130 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_SSTHRESH, win); in iproute_modify()
1261 if (mxrta->rta_len > RTA_LENGTH(0)) { in iproute_modify()
1263 rta_addattr32(mxrta, sizeof(mxbuf), RTAX_LOCK, mxlock); in iproute_modify()
1264 addattr_l(&req.n, sizeof(req), RTA_METRICS, RTA_DATA(mxrta), RTA_PAYLOAD(mxrta)); in iproute_modify()