Searched refs:pfh (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/net/ipv6/
H A Dping.c93 struct pingfakehdr pfh; ping_v6_sendmsg() local
161 pfh.icmph.type = user_icmph.icmp6_type; ping_v6_sendmsg()
162 pfh.icmph.code = user_icmph.icmp6_code; ping_v6_sendmsg()
163 pfh.icmph.checksum = 0; ping_v6_sendmsg()
164 pfh.icmph.un.echo.id = inet->inet_sport; ping_v6_sendmsg()
165 pfh.icmph.un.echo.sequence = user_icmph.icmp6_sequence; ping_v6_sendmsg()
166 pfh.msg = msg; ping_v6_sendmsg()
167 pfh.wcheck = 0; ping_v6_sendmsg()
168 pfh.family = AF_INET6; ping_v6_sendmsg()
173 err = ip6_append_data(sk, ping_getfrag, &pfh, len, ping_v6_sendmsg()
184 (struct icmp6hdr *) &pfh.icmph, ping_v6_sendmsg()
/linux-4.4.14/net/ipv4/
H A Dping.c609 struct pingfakehdr *pfh = (struct pingfakehdr *)from; ping_getfrag() local
616 fraglen, &pfh->wcheck, ping_getfrag()
617 &pfh->msg->msg_iter) != fraglen) ping_getfrag()
622 if (csum_and_copy_from_iter(to, fraglen, &pfh->wcheck, ping_getfrag()
623 &pfh->msg->msg_iter) != fraglen) ping_getfrag()
632 if (pfh->family == AF_INET6) { ping_getfrag()
633 skb->csum = pfh->wcheck; ping_getfrag()
635 pfh->wcheck = 0; ping_getfrag()
643 static int ping_v4_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh, ping_v4_push_pending_frames() argument
648 pfh->wcheck = csum_partial((char *)&pfh->icmph, ping_v4_push_pending_frames()
649 sizeof(struct icmphdr), pfh->wcheck); ping_v4_push_pending_frames()
650 pfh->icmph.checksum = csum_fold(pfh->wcheck); ping_v4_push_pending_frames()
651 memcpy(icmp_hdr(skb), &pfh->icmph, sizeof(struct icmphdr)); ping_v4_push_pending_frames()
704 struct pingfakehdr pfh; ping_v4_sendmsg() local
820 pfh.icmph.type = user_icmph.type; /* already checked */ ping_v4_sendmsg()
821 pfh.icmph.code = user_icmph.code; /* ditto */ ping_v4_sendmsg()
822 pfh.icmph.checksum = 0; ping_v4_sendmsg()
823 pfh.icmph.un.echo.id = inet->inet_sport; ping_v4_sendmsg()
824 pfh.icmph.un.echo.sequence = user_icmph.un.echo.sequence; ping_v4_sendmsg()
825 pfh.msg = msg; ping_v4_sendmsg()
826 pfh.wcheck = 0; ping_v4_sendmsg()
827 pfh.family = AF_INET; ping_v4_sendmsg()
829 err = ip_append_data(sk, &fl4, ping_getfrag, &pfh, len, ping_v4_sendmsg()
834 err = ping_v4_push_pending_frames(sk, &pfh, &fl4); ping_v4_sendmsg()
/linux-4.4.14/drivers/net/wireless/
H A Dray_cs.c2574 struct freq_hop_element *pfh; ray_cs_proc_show() local
2648 pfh = (struct freq_hop_element *)p; ray_cs_proc_show()
2650 pfh->dwell_time[0] + ray_cs_proc_show()
2651 256 * pfh->dwell_time[1]); ray_cs_proc_show()
2653 pfh->hop_set); ray_cs_proc_show()
2655 pfh->hop_pattern); ray_cs_proc_show()
2657 pfh->hop_index); ray_cs_proc_show()

Completed in 151 milliseconds