Lines Matching refs:np
111 struct ipv6_pinfo *np; in inet6_create() local
205 inet_sk(sk)->pinet6 = np = inet6_sk_generic(sk); in inet6_create()
206 np->hop_limit = -1; in inet6_create()
207 np->mcast_hops = IPV6_DEFAULT_MCASTHOPS; in inet6_create()
208 np->mc_loop = 1; in inet6_create()
209 np->mc_all = 1; in inet6_create()
210 np->pmtudisc = IPV6_PMTUDISC_WANT; in inet6_create()
211 np->repflow = net->ipv6.sysctl.flowlabel_reflect & FLOWLABEL_REFLECT_ESTABLISHED; in inet6_create()
279 struct ipv6_pinfo *np = inet6_sk(sk); in __inet6_bind() local
396 np->saddr = addr->sin6_addr; in __inet6_bind()
478 struct ipv6_pinfo *np = inet6_sk(sk); in inet6_destroy_sock() local
484 skb = xchg(&np->pktoptions, NULL); in inet6_destroy_sock()
487 skb = xchg(&np->rxpmtu, NULL); in inet6_destroy_sock()
495 opt = xchg((__force struct ipv6_txoptions **)&np->opt, NULL); in inet6_destroy_sock()
513 struct ipv6_pinfo *np = inet6_sk(sk); in inet6_getname() local
526 if (np->sndflow) in inet6_getname()
527 sin->sin6_flowinfo = np->flow_label; in inet6_getname()
530 sin->sin6_addr = np->saddr; in inet6_getname()
743 struct ipv6_pinfo *np = inet6_sk(sk); in inet6_sk_rebuild_header() local
746 dst = __sk_dst_check(sk, np->dst_cookie); in inet6_sk_rebuild_header()
756 fl6.saddr = np->saddr; in inet6_sk_rebuild_header()
757 fl6.flowlabel = np->flow_label; in inet6_sk_rebuild_header()
766 final_p = fl6_update_dst(&fl6, rcu_dereference(np->opt), in inet6_sk_rebuild_header()
787 const struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_opt_accepted() local
789 if (np->rxopt.all) { in ipv6_opt_accepted()
791 (np->rxopt.bits.hopopts || np->rxopt.bits.ohopopts)) || in ipv6_opt_accepted()
793 np->rxopt.bits.rxflow) || in ipv6_opt_accepted()
794 (opt->srcrt && (np->rxopt.bits.srcrt || in ipv6_opt_accepted()
795 np->rxopt.bits.osrcrt)) || in ipv6_opt_accepted()
797 (np->rxopt.bits.dstopts || np->rxopt.bits.odstopts))) in ipv6_opt_accepted()