HomeFreeBSD

udp: fix sending of IPv4-mapped addresses

Description

udp: fix sending of IPv4-mapped addresses

The inp_vflags field must be adjusted during the call of
in_pcbbind_setup(). This is consistent with the other places in the
code, but not elegant at all.

PR: 274009
Reported by: syzbot+81ccc423a2737ed031ac@syzkaller.appspotmail.com
Reported by: syzbot+c8e3dac881bba85bc029@syzkaller.appspotmail.com
Reviewed by: markj, rrs, rscheff
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D42031

(cherry picked from commit abca3ae7734f664ee9c5edc7a9d3a17e29180bdb)

Details

Provenance
tuexenAuthored on Oct 7 2023, 1:56 PM
Reviewer
markj
Differential Revision
D42031: Improve sending UDP messages using IPv6 mapped addresses
Parents
rG83bcaf3b2d6c: login_cap.c: Don't set errno to ERANGE on memory allocation failure
Branches
Unknown
Tags
Unknown