• Home
  • Raw
  • Download

Lines Matching refs:np

129 	struct ipv6_pinfo *np = inet6_sk(sk);  in do_ipv6_setsockopt()  local
179 !ipv6_addr_v4mapped(&np->daddr)) { in do_ipv6_setsockopt()
218 opt = xchg((__force struct ipv6_txoptions **)&np->opt, in do_ipv6_setsockopt()
224 pktopt = xchg(&np->pktoptions, NULL); in do_ipv6_setsockopt()
243 np->ipv6only = valbool; in do_ipv6_setsockopt()
250 np->rxopt.bits.rxinfo = valbool; in do_ipv6_setsockopt()
257 np->rxopt.bits.rxoinfo = valbool; in do_ipv6_setsockopt()
264 np->rxopt.bits.rxhlim = valbool; in do_ipv6_setsockopt()
271 np->rxopt.bits.rxohlim = valbool; in do_ipv6_setsockopt()
278 np->rxopt.bits.srcrt = valbool; in do_ipv6_setsockopt()
285 np->rxopt.bits.osrcrt = valbool; in do_ipv6_setsockopt()
292 np->rxopt.bits.hopopts = valbool; in do_ipv6_setsockopt()
299 np->rxopt.bits.ohopopts = valbool; in do_ipv6_setsockopt()
306 np->rxopt.bits.dstopts = valbool; in do_ipv6_setsockopt()
313 np->rxopt.bits.odstopts = valbool; in do_ipv6_setsockopt()
325 np->tclass = val; in do_ipv6_setsockopt()
332 np->rxopt.bits.rxtclass = valbool; in do_ipv6_setsockopt()
339 np->rxopt.bits.rxflow = valbool; in do_ipv6_setsockopt()
346 np->rxopt.bits.rxpmtu = valbool; in do_ipv6_setsockopt()
366 np->rxopt.bits.rxorigdstaddr = valbool; in do_ipv6_setsockopt()
393 opt = rcu_dereference_protected(np->opt, sock_owned_by_user(sk)); in do_ipv6_setsockopt()
446 np->sticky_pktinfo.ipi6_ifindex = pkt.ipi6_ifindex; in do_ipv6_setsockopt()
447 np->sticky_pktinfo.ipi6_addr = pkt.ipi6_addr; in do_ipv6_setsockopt()
507 np->hop_limit = val; in do_ipv6_setsockopt()
518 np->mcast_hops = (val == -1 ? IPV6_DEFAULT_MCASTHOPS : val); in do_ipv6_setsockopt()
527 np->mc_loop = valbool; in do_ipv6_setsockopt()
541 np->ucast_oif = 0; in do_ipv6_setsockopt()
556 np->ucast_oif = ifindex; in do_ipv6_setsockopt()
580 np->mcast_oif = val; in do_ipv6_setsockopt()
738 np->pmtudisc = val; in do_ipv6_setsockopt()
746 np->frag_size = val; in do_ipv6_setsockopt()
752 np->recverr = valbool; in do_ipv6_setsockopt()
760 np->sndflow = valbool; in do_ipv6_setsockopt()
831 np->srcprefs = (np->srcprefs & prefmask) | pref; in do_ipv6_setsockopt()
841 np->min_hopcount = val; in do_ipv6_setsockopt()
845 np->dontfrag = valbool; in do_ipv6_setsockopt()
960 struct ipv6_pinfo *np = inet6_sk(sk); in do_ipv6_getsockopt() local
1010 skb = np->pktoptions; in do_ipv6_getsockopt()
1021 if (np->rxopt.bits.rxinfo) { in do_ipv6_getsockopt()
1023 src_info.ipi6_ifindex = np->mcast_oif ? np->mcast_oif : in do_ipv6_getsockopt()
1024 np->sticky_pktinfo.ipi6_ifindex; in do_ipv6_getsockopt()
1025 src_info.ipi6_addr = np->mcast_oif ? np->daddr : np->sticky_pktinfo.ipi6_addr; in do_ipv6_getsockopt()
1028 if (np->rxopt.bits.rxhlim) { in do_ipv6_getsockopt()
1029 int hlim = np->mcast_hops; in do_ipv6_getsockopt()
1032 if (np->rxopt.bits.rxtclass) { in do_ipv6_getsockopt()
1033 int tclass = np->rcv_tclass; in do_ipv6_getsockopt()
1036 if (np->rxopt.bits.rxoinfo) { in do_ipv6_getsockopt()
1038 src_info.ipi6_ifindex = np->mcast_oif ? np->mcast_oif : in do_ipv6_getsockopt()
1039 np->sticky_pktinfo.ipi6_ifindex; in do_ipv6_getsockopt()
1040 src_info.ipi6_addr = np->mcast_oif ? np->daddr : np->sticky_pktinfo.ipi6_addr; in do_ipv6_getsockopt()
1043 if (np->rxopt.bits.rxohlim) { in do_ipv6_getsockopt()
1044 int hlim = np->mcast_hops; in do_ipv6_getsockopt()
1067 val = np->ipv6only; in do_ipv6_getsockopt()
1071 val = np->rxopt.bits.rxinfo; in do_ipv6_getsockopt()
1075 val = np->rxopt.bits.rxoinfo; in do_ipv6_getsockopt()
1079 val = np->rxopt.bits.rxhlim; in do_ipv6_getsockopt()
1083 val = np->rxopt.bits.rxohlim; in do_ipv6_getsockopt()
1087 val = np->rxopt.bits.srcrt; in do_ipv6_getsockopt()
1091 val = np->rxopt.bits.osrcrt; in do_ipv6_getsockopt()
1102 opt = rcu_dereference_protected(np->opt, sock_owned_by_user(sk)); in do_ipv6_getsockopt()
1112 val = np->rxopt.bits.hopopts; in do_ipv6_getsockopt()
1116 val = np->rxopt.bits.ohopopts; in do_ipv6_getsockopt()
1120 val = np->rxopt.bits.dstopts; in do_ipv6_getsockopt()
1124 val = np->rxopt.bits.odstopts; in do_ipv6_getsockopt()
1128 val = np->tclass; in do_ipv6_getsockopt()
1132 val = np->rxopt.bits.rxtclass; in do_ipv6_getsockopt()
1136 val = np->rxopt.bits.rxflow; in do_ipv6_getsockopt()
1140 val = np->rxopt.bits.rxpmtu; in do_ipv6_getsockopt()
1176 val = np->rxopt.bits.rxorigdstaddr; in do_ipv6_getsockopt()
1185 val = np->hop_limit; in do_ipv6_getsockopt()
1187 val = np->mcast_hops; in do_ipv6_getsockopt()
1203 val = np->mc_loop; in do_ipv6_getsockopt()
1207 val = np->mcast_oif; in do_ipv6_getsockopt()
1211 val = (__force int)htonl((__u32) np->ucast_oif); in do_ipv6_getsockopt()
1215 val = np->pmtudisc; in do_ipv6_getsockopt()
1219 val = np->recverr; in do_ipv6_getsockopt()
1223 val = np->sndflow; in do_ipv6_getsockopt()
1229 if (np->srcprefs & IPV6_PREFER_SRC_TMP) in do_ipv6_getsockopt()
1231 else if (np->srcprefs & IPV6_PREFER_SRC_PUBLIC) in do_ipv6_getsockopt()
1238 if (np->srcprefs & IPV6_PREFER_SRC_COA) in do_ipv6_getsockopt()
1245 val = np->min_hopcount; in do_ipv6_getsockopt()
1249 val = np->dontfrag; in do_ipv6_getsockopt()