ifconfig(8): Use constructor priority to define the orders
authorAaron LI <aly@aaronly.me>
Sat, 25 Nov 2023 04:19:47 +0000 (12:19 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 21 Dec 2023 02:19:13 +0000 (10:19 +0800)
commitec7e0eeb1a94a50501654a9ce9e40b8eb622d8e2
tree55648c128589417a186293cee08dfa44b9f3ccb4
parente43c2985ce9deddba8b49b10770d23bd8d4178cc
ifconfig(8): Use constructor priority to define the orders

Originally all the modules use the same constructor priority (101) and
rely on the linking orders (set by the file orders in the Makefile) to
determine their initialization orders.

As described in the comment in Makefile, adjust the constructor
priorities of each module to define their orders.
13 files changed:
sbin/ifconfig/Makefile
sbin/ifconfig/af_inet.c
sbin/ifconfig/af_inet6.c
sbin/ifconfig/af_link.c
sbin/ifconfig/ifbridge.c
sbin/ifconfig/ifcarp.c
sbin/ifconfig/ifclone.c
sbin/ifconfig/ifconfig.c
sbin/ifconfig/ifgroup.c
sbin/ifconfig/ifieee80211.c
sbin/ifconfig/iflagg.c
sbin/ifconfig/ifmedia.c
sbin/ifconfig/ifvlan.c