Page MenuHomeFreeBSD

ifconfig: renove global printifname variable.
ClosedPublic

Authored by melifaro on Jun 6 2023, 7:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 23, 6:51 PM
Unknown Object (File)
Sat, Jan 18, 12:25 AM
Unknown Object (File)
Nov 12 2024, 7:17 AM
Unknown Object (File)
Nov 6 2024, 10:33 PM
Unknown Object (File)
Nov 4 2024, 1:11 AM
Unknown Object (File)
Oct 10 2024, 10:12 PM
Unknown Object (File)
Oct 1 2024, 8:37 PM
Unknown Object (File)
Oct 1 2024, 8:37 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