Home
last modified time | relevance | path

Searched refs:pfh (Results 1 – 2 of 2) sorted by relevance

/net/ipv6/
Dping.c63 struct pingfakehdr pfh; in ping_v6_sendmsg() local
140 pfh.icmph.type = user_icmph.icmp6_type; in ping_v6_sendmsg()
141 pfh.icmph.code = user_icmph.icmp6_code; in ping_v6_sendmsg()
142 pfh.icmph.checksum = 0; in ping_v6_sendmsg()
143 pfh.icmph.un.echo.id = inet->inet_sport; in ping_v6_sendmsg()
144 pfh.icmph.un.echo.sequence = user_icmph.icmp6_sequence; in ping_v6_sendmsg()
145 pfh.msg = msg; in ping_v6_sendmsg()
146 pfh.wcheck = 0; in ping_v6_sendmsg()
147 pfh.family = AF_INET6; in ping_v6_sendmsg()
154 err = ip6_append_data(sk, ping_getfrag, &pfh, len, in ping_v6_sendmsg()
[all …]
/net/ipv4/
Dping.c607 struct pingfakehdr *pfh = (struct pingfakehdr *)from; in ping_getfrag() local
614 fraglen, &pfh->wcheck, in ping_getfrag()
615 &pfh->msg->msg_iter) != fraglen) in ping_getfrag()
620 if (csum_and_copy_from_iter(to, fraglen, &pfh->wcheck, in ping_getfrag()
621 &pfh->msg->msg_iter) != fraglen) in ping_getfrag()
630 if (pfh->family == AF_INET6) { in ping_getfrag()
631 skb->csum = pfh->wcheck; in ping_getfrag()
633 pfh->wcheck = 0; in ping_getfrag()
641 static int ping_v4_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh, in ping_v4_push_pending_frames() argument
648 pfh->wcheck = csum_partial((char *)&pfh->icmph, in ping_v4_push_pending_frames()
[all …]