HomeFreeBSD

arp(8): use getifaddrs(3) instead of ioctl(SIOCGIFCONF)

Description

arp(8): use getifaddrs(3) instead of ioctl(SIOCGIFCONF)

The original code had used a fixed-size buffer for ioctl(SIOCGIFCONF),
that might cause the target ifreq spilled from the buffer. Use the handy
getifaddrs(3) to fix the problem.

Reviewed by: glebius
Differential revision: https://reviews.freebsd.org/D35536

Details

Provenance
takahiro.kurosawa_gmail.comAuthored on Jul 5 2022, 3:56 AM
glebiusCommitted on Jul 5 2022, 3:56 AM
Reviewer
glebius
Differential Revision
D35536: arp(8): use getifaddrs(3) instead of ioctl(SIOCGIFCONF) etc.
Parents
rGec32fc2af525: dwc3: fix from not working
Branches
Unknown
Tags
Unknown