Lines Matching refs:rfv
718 static int rawv6_probe_proto_opt(struct raw6_frag_vec *rfv, struct flowi6 *fl6) in rawv6_probe_proto_opt() argument
723 rfv->hlen = 2; in rawv6_probe_proto_opt()
724 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt()
726 fl6->fl6_icmp_type = rfv->c[0]; in rawv6_probe_proto_opt()
727 fl6->fl6_icmp_code = rfv->c[1]; in rawv6_probe_proto_opt()
731 rfv->hlen = 4; in rawv6_probe_proto_opt()
732 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt()
734 fl6->fl6_mh_type = rfv->c[2]; in rawv6_probe_proto_opt()
742 struct raw6_frag_vec *rfv = from; in raw6_getfrag() local
744 if (offset < rfv->hlen) { in raw6_getfrag()
745 int copy = min(rfv->hlen - offset, len); in raw6_getfrag()
748 memcpy(to, rfv->c + offset, copy); in raw6_getfrag()
752 csum_partial_copy_nocheck(rfv->c + offset, in raw6_getfrag()
765 offset -= rfv->hlen; in raw6_getfrag()
767 return ip_generic_getfrag(rfv->msg, to, offset, len, odd, skb); in raw6_getfrag()
782 struct raw6_frag_vec rfv; in rawv6_sendmsg() local
903 rfv.msg = msg; in rawv6_sendmsg()
904 rfv.hlen = 0; in rawv6_sendmsg()
905 err = rawv6_probe_proto_opt(&rfv, &fl6); in rawv6_sendmsg()
954 err = ip6_append_data(sk, raw6_getfrag, &rfv, in rawv6_sendmsg()