| Summary: | Add ioctl support to linux emulation and permit ethX syntax | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Doug Ambrisko <ambrisko> | ||||
| Component: | kern | Assignee: | Dag-Erling Smørgrav <des> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Unspecified | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Doug Ambrisko
2001-04-13 23:20:01 UTC
What do you think about: - using strtoul(), to allow more than 10 eth%d's. - The value could be the ifindex (won't change if a dynamic interface in the middle of the list is deleted); you can then also use ifindex2ifnet[index] (if index < if_index) instead of walking ifnet. Advantages of using ifindex: mapping is known-map "Link#X" in netstat -ni to "ethX", mapping doesn't change, O(1) to find the right ifnet Disadvantage of using ifindex: you don't get to skip P2P, loopback and non-broadcast interfaces in the mapping. Responsible Changed From-To: freebsd-bugs->des I'll take this one. State Changed From-To: open->analyzed Partial fix committed, more work remains to be done. State Changed From-To: analyzed->closed Similar functionality (and more) has been added to -CURRENT and -STABLE. |