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, Nov 21, 4:44 AM
Unknown Object (File)
Wed, Nov 19, 6:30 AM
Unknown Object (File)
Wed, Nov 19, 6:16 AM
Unknown Object (File)
Wed, Nov 19, 6:15 AM
Unknown Object (File)
Wed, Nov 19, 6:14 AM
Unknown Object (File)
Thu, Nov 13, 9:41 PM
Unknown Object (File)
Thu, Nov 13, 8:05 PM
Unknown Object (File)
Thu, Nov 13, 5:12 PM
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 Not Applicable
Unit
Tests Not Applicable

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