Page MenuHomeFreeBSD

ifconfig: renove global printifname variable.
ClosedPublic

Authored by melifaro on Jun 6 2023, 7:37 AM.
Tags
None
Referenced Files
F142250061: D40431.id.diff
Sat, Jan 17, 7:33 PM
F142246125: D40431.id122874.diff
Sat, Jan 17, 6:32 PM
F142245554: D40431.diff
Sat, Jan 17, 6:24 PM
Unknown Object (File)
Sat, Dec 20, 10:56 PM
Unknown Object (File)
Nov 27 2025, 8:33 AM
Unknown Object (File)
Nov 20 2025, 9:34 PM
Unknown Object (File)
Nov 20 2025, 9:24 PM
Unknown Object (File)
Nov 20 2025, 9:21 PM
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 Not Applicable
Unit
Tests Not Applicable