Changeset View
Changeset View
Standalone View
Standalone View
sbin/ifconfig/ifstf.c
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | static struct afswtch af_stf = { | ||||
.af_name = "af_stf", | .af_name = "af_stf", | ||||
.af_af = AF_UNSPEC, | .af_af = AF_UNSPEC, | ||||
.af_other_status = stf_status, | .af_other_status = stf_status, | ||||
}; | }; | ||||
static __constructor void | static __constructor void | ||||
stf_ctor(void) | stf_ctor(void) | ||||
{ | { | ||||
int i; | for (size_t i = 0; i < nitems(stf_cmds); i++) | ||||
for (i = 0; i < nitems(stf_cmds); i++) | |||||
cmd_register(&stf_cmds[i]); | cmd_register(&stf_cmds[i]); | ||||
af_register(&af_stf); | af_register(&af_stf); | ||||
} | } |