Page MenuHomeFreeBSD

ifconfig: renove global printifname variable.
ClosedPublic

Authored by melifaro on Jun 6 2023, 7:37 AM.
Tags
None
Referenced Files
F173606974: D40431.id.diff
Sun, Sep 27, 3:51 AM
Unknown Object (File)
Thu, Sep 24, 7:09 AM
Unknown Object (File)
Thu, Sep 24, 6:41 AM
Unknown Object (File)
Tue, Sep 22, 1:42 PM
Unknown Object (File)
Fri, Sep 11, 3:55 AM
Unknown Object (File)
Wed, Sep 9, 8:52 PM
Unknown Object (File)
Sat, Sep 5, 10:15 PM
Unknown Object (File)
Sat, Sep 5, 11:49 AM
Subscribers

Details

Summary

It was used to print the created interface name in the atexit handler.
It was calculated in the ifclonecreate() by matching old & new names.

This change alter the implementation the following way:

  1. the function responsible for the interface creation (ifcreate_ioctl) updates all necessary state internally. This removes the need for the name manipulation hack in wlan_create().
  2. As atexit(3) handler does not accept any parameters, explicitly store the name to print in the ifname_to_print variable read by the atexit(3) handler.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 51917
Build 48808: arc lint + arc unit