• Home
  • Raw
  • Download

Lines Matching refs:val

397 	int val, valbool;  in do_ipv6_setsockopt()  local
402 val = 0; in do_ipv6_setsockopt()
405 if (copy_from_sockptr(&val, optval, sizeof(val))) in do_ipv6_setsockopt()
408 val = 0; in do_ipv6_setsockopt()
411 valbool = (val != 0); in do_ipv6_setsockopt()
431 if (val == PF_INET) { in do_ipv6_setsockopt()
597 if (val < -1 || val > 0xff) in do_ipv6_setsockopt()
600 if (val == -1) in do_ipv6_setsockopt()
601 val = 0; in do_ipv6_setsockopt()
602 np->tclass = val; in do_ipv6_setsockopt()
738 if (val > 255 || val < -1) in do_ipv6_setsockopt()
740 np->hop_limit = val; in do_ipv6_setsockopt()
749 if (val > 255 || val < -1) in do_ipv6_setsockopt()
751 np->mcast_hops = (val == -1 ? IPV6_DEFAULT_MCASTHOPS : val); in do_ipv6_setsockopt()
758 if (val != valbool) in do_ipv6_setsockopt()
772 ifindex = (__force int)ntohl((__force __be32)val); in do_ipv6_setsockopt()
800 if (val) { in do_ipv6_setsockopt()
806 dev = dev_get_by_index_rcu(net, val); in do_ipv6_setsockopt()
817 sk->sk_bound_dev_if != val && in do_ipv6_setsockopt()
821 np->mcast_oif = val; in do_ipv6_setsockopt()
896 retv = ip6_ra_control(sk, val); in do_ipv6_setsockopt()
907 if (val < IPV6_PMTUDISC_DONT || val > IPV6_PMTUDISC_OMIT) in do_ipv6_setsockopt()
909 np->pmtudisc = val; in do_ipv6_setsockopt()
915 if (val && val < IPV6_MIN_MTU) in do_ipv6_setsockopt()
917 np->frag_size = val; in do_ipv6_setsockopt()
924 if (!val) in do_ipv6_setsockopt()
948 retv = __ip6_sock_set_addr_preferences(sk, val); in do_ipv6_setsockopt()
953 if (val < 0 || val > 255) in do_ipv6_setsockopt()
955 np->min_hopcount = val; in do_ipv6_setsockopt()
974 if (val < 0 || val > 1) in do_ipv6_setsockopt()
1125 int val; in do_ipv6_getsockopt() local
1140 val = sk->sk_family; in do_ipv6_getsockopt()
1206 val = 0; in do_ipv6_getsockopt()
1210 val = dst_mtu(dst); in do_ipv6_getsockopt()
1212 if (!val) in do_ipv6_getsockopt()
1218 val = sk->sk_ipv6only; in do_ipv6_getsockopt()
1222 val = np->rxopt.bits.rxinfo; in do_ipv6_getsockopt()
1226 val = np->rxopt.bits.rxoinfo; in do_ipv6_getsockopt()
1230 val = np->rxopt.bits.rxhlim; in do_ipv6_getsockopt()
1234 val = np->rxopt.bits.rxohlim; in do_ipv6_getsockopt()
1238 val = np->rxopt.bits.srcrt; in do_ipv6_getsockopt()
1242 val = np->rxopt.bits.osrcrt; in do_ipv6_getsockopt()
1264 val = np->rxopt.bits.hopopts; in do_ipv6_getsockopt()
1268 val = np->rxopt.bits.ohopopts; in do_ipv6_getsockopt()
1272 val = np->rxopt.bits.dstopts; in do_ipv6_getsockopt()
1276 val = np->rxopt.bits.odstopts; in do_ipv6_getsockopt()
1280 val = np->tclass; in do_ipv6_getsockopt()
1284 val = np->rxopt.bits.rxtclass; in do_ipv6_getsockopt()
1288 val = np->rxopt.bits.rxflow; in do_ipv6_getsockopt()
1292 val = np->rxopt.bits.rxpmtu; in do_ipv6_getsockopt()
1323 val = inet_sk(sk)->transparent; in do_ipv6_getsockopt()
1327 val = inet_sk(sk)->freebind; in do_ipv6_getsockopt()
1331 val = np->rxopt.bits.rxorigdstaddr; in do_ipv6_getsockopt()
1340 val = np->hop_limit; in do_ipv6_getsockopt()
1342 val = np->mcast_hops; in do_ipv6_getsockopt()
1344 if (val < 0) { in do_ipv6_getsockopt()
1348 val = ip6_dst_hoplimit(dst); in do_ipv6_getsockopt()
1352 if (val < 0) in do_ipv6_getsockopt()
1353 val = sock_net(sk)->ipv6.devconf_all->hop_limit; in do_ipv6_getsockopt()
1358 val = np->mc_loop; in do_ipv6_getsockopt()
1362 val = np->mcast_oif; in do_ipv6_getsockopt()
1366 val = np->mc_all; in do_ipv6_getsockopt()
1370 val = (__force int)htonl((__u32) np->ucast_oif); in do_ipv6_getsockopt()
1374 val = np->pmtudisc; in do_ipv6_getsockopt()
1378 val = np->recverr; in do_ipv6_getsockopt()
1382 val = np->sndflow; in do_ipv6_getsockopt()
1404 val = ipv6_flowlabel_opt_get(sk, &freq, flags); in do_ipv6_getsockopt()
1405 if (val < 0) in do_ipv6_getsockopt()
1406 return val; in do_ipv6_getsockopt()
1417 val = 0; in do_ipv6_getsockopt()
1420 val |= IPV6_PREFER_SRC_TMP; in do_ipv6_getsockopt()
1422 val |= IPV6_PREFER_SRC_PUBLIC; in do_ipv6_getsockopt()
1425 val |= IPV6_PREFER_SRC_PUBTMP_DEFAULT; in do_ipv6_getsockopt()
1429 val |= IPV6_PREFER_SRC_COA; in do_ipv6_getsockopt()
1431 val |= IPV6_PREFER_SRC_HOME; in do_ipv6_getsockopt()
1435 val = np->min_hopcount; in do_ipv6_getsockopt()
1439 val = np->dontfrag; in do_ipv6_getsockopt()
1443 val = ip6_autoflowlabel(sock_net(sk), np); in do_ipv6_getsockopt()
1447 val = np->rxopt.bits.recvfragsize; in do_ipv6_getsockopt()
1451 val = np->rtalert_isolate; in do_ipv6_getsockopt()
1455 val = np->recverr_rfc4884; in do_ipv6_getsockopt()
1464 if (copy_to_user(optval, &val, len)) in do_ipv6_getsockopt()