Lines Matching refs:np
43 struct ipv6_pinfo *np = inet6_sk(sk); in ip6_datagram_flow_key_init() local
48 fl6->saddr = np->saddr; in ip6_datagram_flow_key_init()
53 fl6->flowlabel = np->flow_label; in ip6_datagram_flow_key_init()
57 fl6->flowi6_oif = np->sticky_pktinfo.ipi6_ifindex; in ip6_datagram_flow_key_init()
60 fl6->flowi6_oif = np->mcast_oif; in ip6_datagram_flow_key_init()
72 struct ipv6_pinfo *np = inet6_sk(sk); in ip6_datagram_dst_update() local
76 if (np->sndflow && (np->flow_label & IPV6_FLOWLABEL_MASK)) { in ip6_datagram_dst_update()
77 flowlabel = fl6_sock_lookup(sk, np->flow_label); in ip6_datagram_dst_update()
84 opt = flowlabel ? flowlabel->opt : rcu_dereference(np->opt); in ip6_datagram_dst_update()
95 if (ipv6_addr_any(&np->saddr)) in ip6_datagram_dst_update()
96 np->saddr = fl6.saddr; in ip6_datagram_dst_update()
138 struct ipv6_pinfo *np = inet6_sk(sk); in __ip6_datagram_connect() local
159 if (np->sndflow) in __ip6_datagram_connect()
198 if (ipv6_addr_any(&np->saddr) || in __ip6_datagram_connect()
199 ipv6_mapped_addr_any(&np->saddr)) in __ip6_datagram_connect()
200 ipv6_addr_set_v4mapped(inet->inet_saddr, &np->saddr); in __ip6_datagram_connect()
224 sk->sk_bound_dev_if = np->mcast_oif; in __ip6_datagram_connect()
235 old_fl6_flowlabel = np->flow_label; in __ip6_datagram_connect()
239 np->flow_label = fl6_flowlabel; in __ip6_datagram_connect()
253 np->flow_label = old_fl6_flowlabel; in __ip6_datagram_connect()
290 struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_icmp_error() local
294 if (!np->recverr) in ipv6_icmp_error()
324 const struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_local_error() local
329 if (!np->recverr) in ipv6_local_error()
364 struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_local_rxpmtu() local
369 if (!np->rxopt.bits.rxpmtu) in ipv6_local_rxpmtu()
393 skb = xchg(&np->rxpmtu, skb); in ipv6_local_rxpmtu()
434 struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_recv_error() local
473 if (np->sndflow) in ipv6_recv_error()
492 if (np->rxopt.all) in ipv6_recv_error()
496 if (np->rxopt.all) in ipv6_recv_error()
528 struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_recv_rxpmtu() local
536 skb = xchg(&np->rxpmtu, NULL); in ipv6_recv_rxpmtu()
576 struct ipv6_pinfo *np = inet6_sk(sk); in ip6_datagram_recv_common_ctl() local
579 if (np->rxopt.bits.rxinfo) { in ip6_datagram_recv_common_ctl()
601 struct ipv6_pinfo *np = inet6_sk(sk); in ip6_datagram_recv_specific_ctl() local
605 if (np->rxopt.bits.rxhlim) { in ip6_datagram_recv_specific_ctl()
610 if (np->rxopt.bits.rxtclass) { in ip6_datagram_recv_specific_ctl()
615 if (np->rxopt.bits.rxflow) { in ip6_datagram_recv_specific_ctl()
622 if (np->rxopt.bits.hopopts && (opt->flags & IP6SKB_HOPBYHOP)) { in ip6_datagram_recv_specific_ctl()
628 (np->rxopt.bits.dstopts || np->rxopt.bits.srcrt)) { in ip6_datagram_recv_specific_ctl()
649 if (np->rxopt.bits.dstopts) in ip6_datagram_recv_specific_ctl()
655 if (np->rxopt.bits.srcrt) in ip6_datagram_recv_specific_ctl()
673 if (np->rxopt.bits.rxoinfo) { in ip6_datagram_recv_specific_ctl()
680 if (np->rxopt.bits.rxohlim) { in ip6_datagram_recv_specific_ctl()
684 if (np->rxopt.bits.ohopopts && (opt->flags & IP6SKB_HOPBYHOP)) { in ip6_datagram_recv_specific_ctl()
688 if (np->rxopt.bits.odstopts && opt->dst0) { in ip6_datagram_recv_specific_ctl()
692 if (np->rxopt.bits.osrcrt && opt->srcrt) { in ip6_datagram_recv_specific_ctl()
696 if (np->rxopt.bits.odstopts && opt->dst1) { in ip6_datagram_recv_specific_ctl()
700 if (np->rxopt.bits.rxorigdstaddr) { in ip6_datagram_recv_specific_ctl()
722 if (np->rxopt.bits.recvfragsize && opt->frag_max_size) { in ip6_datagram_recv_specific_ctl()