Page MenuHomeFreeBSD

usr.sbin/ppp: correct SIOCDIFADDR{,_IN6} calls to use {,in6_}ifreq
ClosedPublic

Authored by def on Jul 18 2024, 2:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 16, 12:42 PM
Unknown Object (File)
Mon, Jan 12, 11:55 AM
Unknown Object (File)
Mon, Jan 12, 10:18 AM
Unknown Object (File)
Sat, Jan 10, 3:44 PM
Unknown Object (File)
Dec 12 2025, 8:25 PM
Unknown Object (File)
Dec 9 2025, 1:19 PM
Unknown Object (File)
Nov 21 2025, 4:44 AM
Unknown Object (File)
Nov 19 2025, 6:30 AM
Subscribers

Details

Summary

The SIOCDIFADDR{,_IN6} ioctls take an ifreq structure object, not an
ifaliasreq structure object, as their argument.

Obtained from: CheriBSD

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 58701
Build 55589: arc lint + arc unit

Event Timeline

def requested review of this revision.Jul 18 2024, 2:59 PM

@brooks @oshogbo Do you have any suggestions who should review this? It is not clear to me based on the commit history.

brooks added a subscriber: jhb.

I don't see any obvious reviewer candidates. Maybe @jhb?

It looks like the original author of this commit just misunderstood how SIOCDIFADDR* worked.

This revision is now accepted and ready to land.Jul 18 2024, 7:39 PM

sbin/nos-tun/nos-tun.c and usr.sbin/uhsoctl/uhsoctl.c both have the same mistake

Thanks for reviews!

In D46018#1049505, @jhb wrote:

sbin/nos-tun/nos-tun.c and usr.sbin/uhsoctl/uhsoctl.c both have the same mistake

Yes, these are covered in:
https://reviews.freebsd.org/D46019
https://reviews.freebsd.org/D46017