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)
Mar 12 2024, 9:25 PM
Unknown Object (File)
Feb 13 2024, 7:32 PM
Unknown Object (File)
Jan 14 2024, 8:52 AM
Unknown Object (File)
Dec 20 2023, 2:16 AM
Unknown Object (File)
Sep 30 2023, 11:57 PM
Unknown Object (File)
Aug 10 2023, 11:15 AM
Unknown Object (File)
Jun 13 2023, 6:27 AM
Unknown Object (File)
Jun 12 2023, 2:17 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