Lines Matching refs:rfv
431 static int raw_probe_proto_opt(struct raw_frag_vec *rfv, struct flowi4 *fl4) in raw_probe_proto_opt() argument
439 rfv->hlen = 2; in raw_probe_proto_opt()
441 err = memcpy_from_msg(rfv->hdr.c, rfv->msg, rfv->hlen); in raw_probe_proto_opt()
445 fl4->fl4_icmp_type = rfv->hdr.icmph.type; in raw_probe_proto_opt()
446 fl4->fl4_icmp_code = rfv->hdr.icmph.code; in raw_probe_proto_opt()
454 struct raw_frag_vec *rfv = from; in raw_getfrag() local
456 if (offset < rfv->hlen) { in raw_getfrag()
457 int copy = min(rfv->hlen - offset, len); in raw_getfrag()
460 memcpy(to, rfv->hdr.c + offset, copy); in raw_getfrag()
464 csum_partial_copy_nocheck(rfv->hdr.c + offset, in raw_getfrag()
477 offset -= rfv->hlen; in raw_getfrag()
479 return ip_generic_getfrag(rfv->msg, to, offset, len, odd, skb); in raw_getfrag()
495 struct raw_frag_vec rfv; in raw_sendmsg() local
619 rfv.msg = msg; in raw_sendmsg()
620 rfv.hlen = 0; in raw_sendmsg()
622 err = raw_probe_proto_opt(&rfv, &fl4); in raw_sendmsg()
652 &rfv, len, 0, in raw_sendmsg()