Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/ipv6/
Draw.c718 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()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Draw.c448 static int raw_probe_proto_opt(struct raw_frag_vec *rfv, struct flowi4 *fl4) in raw_probe_proto_opt() argument
456 rfv->hlen = 2; in raw_probe_proto_opt()
458 err = memcpy_from_msg(rfv->hdr.c, rfv->msg, rfv->hlen); in raw_probe_proto_opt()
462 fl4->fl4_icmp_type = rfv->hdr.icmph.type; in raw_probe_proto_opt()
463 fl4->fl4_icmp_code = rfv->hdr.icmph.code; in raw_probe_proto_opt()
471 struct raw_frag_vec *rfv = from; in raw_getfrag() local
473 if (offset < rfv->hlen) { in raw_getfrag()
474 int copy = min(rfv->hlen - offset, len); in raw_getfrag()
477 memcpy(to, rfv->hdr.c + offset, copy); in raw_getfrag()
481 csum_partial_copy_nocheck(rfv->hdr.c + offset, in raw_getfrag()
[all …]