HomeFreeBSD

udp: Prefer memcpy() over bcopy()

Description

udp: Prefer memcpy() over bcopy()

The variable b[] is on the stack, thus cannot overlap with ipov, which
points to the heap area, so prefer memcpy() over memmove(), aka bcopy().

No functional change intended.

Reviewed by: cc, rrs, cy, transport, network
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D47713

(cherry picked from commit 949190c5afbc677c53b5d96354b52256923a11d1)

Details

Provenance
zleiAuthored on Nov 28 2024, 10:04 AM
Reviewer
transport
Differential Revision
D47713: udp: Prefer memcpy() over bcopy
Parents
rGd460330dfe80: Install pvscsi man page
Branches
Unknown
Tags
Unknown