Migrate linux and linprocfs to use the IfAPI interfaces instead of
direct ifnet accesses.
Details
Details
- Reviewers
jhibbits melifaro - Group Reviewers
Linux Emulation - Commits
- rG6c5786fd37cb: linux(4): Migrate to IfAPI
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/compat/linprocfs/linprocfs.c | ||
---|---|---|
1492 | Just style, do we need the spaces here? |
Comment Actions
ah, casts and sizeof's are not followed by a space. so, whitespaces are gone
Thank you!
Comment Actions
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 .