Lines Matching refs:if_nameindex
1 /* $NetBSD: if_nameindex.c,v 1.7 2012/03/13 21:13:41 christos Exp $ */
2 /* $KAME: if_nameindex.c,v 1.8 2000/11/24 08:20:01 itojun Exp $ */
26 * BSDI Id: if_nameindex.c,v 2.3 2000/04/17 22:38:05 dab Exp
31 __RCSID("$NetBSD: if_nameindex.c,v 1.7 2012/03/13 21:13:41 christos Exp $");
44 __weak_alias(if_nameindex,_if_nameindex)
52 * The if_nameindex structure holds the information about a single
56 * struct if_nameindex {
61 * The final function returns an array of if_nameindex structures, one
64 * struct if_nameindex *if_nameindex(void);
77 * if_nameindex().
81 * void if_freenameindex(struct if_nameindex *ptr);
84 * if_nameindex().
87 struct if_nameindex *
88 if_nameindex(void)
92 struct if_nameindex *ifni, *ifni2;
117 cp = malloc((ni + 1) * sizeof(struct if_nameindex) + nbytes);
118 ifni = (struct if_nameindex *)(void *)cp;
121 cp += (ni + 1) * sizeof(struct if_nameindex);
125 * filling in the if_nameindex array and making copies
152 if_freenameindex(struct if_nameindex *ptr)