Page MenuHomeFreeBSD

linux(4): Migrate to IfAPI
ClosedPublic

Authored by dchagin on Feb 22 2023, 8:22 PM.
Referenced Files
Unknown Object (File)
Sat, Jun 15, 1:22 AM
Unknown Object (File)
May 8 2024, 1:47 AM
Unknown Object (File)
Apr 29 2024, 9:46 AM
Unknown Object (File)
Apr 29 2024, 9:46 AM
Unknown Object (File)
Apr 29 2024, 9:45 AM
Unknown Object (File)
Apr 23 2024, 9:12 PM
Unknown Object (File)
Apr 23 2024, 9:12 PM
Unknown Object (File)
Apr 23 2024, 8:51 PM
Subscribers

Details

Summary

Migrate linux and linprocfs to use the IfAPI interfaces instead of
direct ifnet accesses.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhibbits added inline comments.
sys/compat/linprocfs/linprocfs.c
1492

Just style, do we need the spaces here?

This revision is now accepted and ready to land.Feb 27 2023, 12:38 AM

ah, casts and sizeof's are not followed by a space. so, whitespaces are gone
Thank you!

This revision now requires review to proceed.Feb 27 2023, 10:19 AM
This revision is now accepted and ready to land.Mar 1 2023, 4:40 PM

ugh, bug found in ifconf code,
linux_ifconf_ifaddr_cb2() should return 1 as if_foreach_addr_type()
counts from 0, so addrs always is 0 and linux_ifconf_ifnet_cb2() always
adds cruft entries with address 0. Linux skips interfaces not running and without addresses .

This revision now requires review to proceed.Mar 2 2023, 9:15 AM
This revision was not accepted when it landed; it landed in state Needs Review.Mar 4 2023, 9:13 AM
This revision was automatically updated to reflect the committed changes.