HomeFreeBSD

ifconfig: reject netmask and broadcast for inet6

Description

ifconfig: reject netmask and broadcast for inet6

We don't support setting netmask or broadcast address for INET6
addresses, and trying to do crashes ifconfig. Handle this the
same way as af_link, by rejecting attempts to configure these
parameters.

PR: 286910
Reported by: Hayzam Sherif <hayzam@alchemilla.io>
MFC after: 3 days
Reviewed by: zlei, kevans, des, cy
Approved by: kevans (mentor)
Differential Revision: https://reviews.freebsd.org/D50413

Details

Provenance
ivyAuthored on May 21 2025, 3:59 AM
Reviewer
zlei
Differential Revision
D50413: ifconfig: reject netmask and broadcast for inet6
Parents
rG059fbe9a716d: elf.5: Add NT_FREEBSD_FCTL_LA48 and NT_FREEBSD_FCTL_LA57
Branches
Unknown
Tags
Unknown