Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/ifconfig/ifclone.c
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | list_cloners(void) | ||||
for (cp = buf, idx = 0; idx < ifcr.ifcr_count; idx++, cp += IFNAMSIZ) { | for (cp = buf, idx = 0; idx < ifcr.ifcr_count; idx++, cp += IFNAMSIZ) { | ||||
if (idx > 0) | if (idx > 0) | ||||
putchar(' '); | putchar(' '); | ||||
printf("%s", cp); | printf("%s", cp); | ||||
} | } | ||||
putchar('\n'); | putchar('\n'); | ||||
free(buf); | free(buf); | ||||
close(s); | |||||
} | } | ||||
struct clone_defcb { | struct clone_defcb { | ||||
char ifprefix[IFNAMSIZ]; | char ifprefix[IFNAMSIZ]; | ||||
clone_callback_func *clone_cb; | clone_callback_func *clone_cb; | ||||
SLIST_ENTRY(clone_defcb) next; | SLIST_ENTRY(clone_defcb) next; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |