Searched refs:pfh (Results 1 – 2 of 2) sorted by relevance
/net/ipv6/ |
D | ping.c | 59 struct pingfakehdr pfh; in ping_v6_sendmsg() local 130 pfh.icmph.type = user_icmph.icmp6_type; in ping_v6_sendmsg() 131 pfh.icmph.code = user_icmph.icmp6_code; in ping_v6_sendmsg() 132 pfh.icmph.checksum = 0; in ping_v6_sendmsg() 133 pfh.icmph.un.echo.id = inet->inet_sport; in ping_v6_sendmsg() 134 pfh.icmph.un.echo.sequence = user_icmph.icmp6_sequence; in ping_v6_sendmsg() 135 pfh.msg = msg; in ping_v6_sendmsg() 136 pfh.wcheck = 0; in ping_v6_sendmsg() 137 pfh.family = AF_INET6; in ping_v6_sendmsg() 142 err = ip6_append_data(sk, ping_getfrag, &pfh, len, in ping_v6_sendmsg() [all …]
|
/net/ipv4/ |
D | ping.c | 617 struct pingfakehdr *pfh = (struct pingfakehdr *)from; in ping_getfrag() local 624 fraglen, &pfh->wcheck, in ping_getfrag() 625 &pfh->msg->msg_iter)) in ping_getfrag() 630 if (!csum_and_copy_from_iter_full(to, fraglen, &pfh->wcheck, in ping_getfrag() 631 &pfh->msg->msg_iter)) in ping_getfrag() 640 if (pfh->family == AF_INET6) { in ping_getfrag() 641 skb->csum = pfh->wcheck; in ping_getfrag() 643 pfh->wcheck = 0; in ping_getfrag() 651 static int ping_v4_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh, in ping_v4_push_pending_frames() argument 658 pfh->wcheck = csum_partial((char *)&pfh->icmph, in ping_v4_push_pending_frames() [all …]
|