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)
Wed, Jan 29, 12:56 AM
Unknown Object (File)
Tue, Jan 28, 10:47 AM
Unknown Object (File)
Sun, Jan 26, 5:54 PM
Unknown Object (File)
Fri, Jan 24, 5:43 PM
Unknown Object (File)
Fri, Jan 24, 5:11 PM
Unknown Object (File)
Wed, Jan 15, 1:58 AM
Unknown Object (File)
Sat, Jan 4, 10:16 AM
Unknown Object (File)
Dec 3 2024, 5:06 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