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 129 pfh.icmph.type = user_icmph.icmp6_type; in ping_v6_sendmsg() 130 pfh.icmph.code = user_icmph.icmp6_code; in ping_v6_sendmsg() 131 pfh.icmph.checksum = 0; in ping_v6_sendmsg() 132 pfh.icmph.un.echo.id = inet->inet_sport; in ping_v6_sendmsg() 133 pfh.icmph.un.echo.sequence = user_icmph.icmp6_sequence; in ping_v6_sendmsg() 134 pfh.msg = msg; in ping_v6_sendmsg() 135 pfh.wcheck = 0; in ping_v6_sendmsg() 136 pfh.family = AF_INET6; in ping_v6_sendmsg() 141 err = ip6_append_data(sk, ping_getfrag, &pfh, len, in ping_v6_sendmsg() [all …]
|
/net/ipv4/ |
D | ping.c | 600 struct pingfakehdr *pfh = (struct pingfakehdr *)from; in ping_getfrag() local 607 fraglen, &pfh->wcheck, in ping_getfrag() 608 &pfh->msg->msg_iter)) in ping_getfrag() 613 if (!csum_and_copy_from_iter_full(to, fraglen, &pfh->wcheck, in ping_getfrag() 614 &pfh->msg->msg_iter)) in ping_getfrag() 623 if (pfh->family == AF_INET6) { in ping_getfrag() 624 skb->csum = pfh->wcheck; in ping_getfrag() 626 pfh->wcheck = 0; in ping_getfrag() 634 static int ping_v4_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh, in ping_v4_push_pending_frames() argument 641 pfh->wcheck = csum_partial((char *)&pfh->icmph, in ping_v4_push_pending_frames() [all …]
|