Lines Matching refs:val
23 u32 val; in ip_metrics_convert() local
37 val = tcp_ca_get_key_by_name(net, tmp, &ecn_ca); in ip_metrics_convert()
38 if (val == TCP_CA_UNSPEC) { in ip_metrics_convert()
48 val = nla_get_u32(nla); in ip_metrics_convert()
50 if (type == RTAX_ADVMSS && val > 65535 - 40) in ip_metrics_convert()
51 val = 65535 - 40; in ip_metrics_convert()
52 if (type == RTAX_MTU && val > 65535 - 15) in ip_metrics_convert()
53 val = 65535 - 15; in ip_metrics_convert()
54 if (type == RTAX_HOPLIMIT && val > 255) in ip_metrics_convert()
55 val = 255; in ip_metrics_convert()
56 if (type == RTAX_FEATURES && (val & ~RTAX_FEATURE_MASK)) { in ip_metrics_convert()
60 metrics[type - 1] = val; in ip_metrics_convert()