HomeFreeBSD

ifconfig: remove (most of) the usages of global 'struct ifreq ifr'.

Description

ifconfig: remove (most of) the usages of global 'struct ifreq ifr'.

It is hard to reason about the contents of 'ifr' at any given time
as nearly every function sets random fields or pointers in this
structure.
Use local on-stack clean 'struct ifreq' for each function instead.

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D40534
MFC after: 2 weeks

Details

Provenance
melifaroAuthored on Jun 14 2023, 1:00 PM
Reviewer
kp
Differential Revision
D40534: ifconfig: remove (most of) the usages of global 'struct ifreq ifr'.
Parents
rG9e8174289236: vm_phys: add binary segment search
Branches
Unknown
Tags
Unknown