Searched defs:ifaddrs (Results 1 - 5 of 5) sorted by relevance

/illumos-gate/usr/src/head/
H A Difaddrs.h38 struct ifaddrs { struct
39 struct ifaddrs *ifa_next; /* Pointer to the next structure. */
69 * Create a linked list of `struct ifaddrs' structures, one for each
76 extern int getifaddrs(struct ifaddrs **);
79 extern void freeifaddrs(struct ifaddrs *);
/illumos-gate/usr/src/lib/libinetutil/common/
H A Difaddrlistx.c46 ifaddrlistx_t *ifaddrp, *ifaddrs = NULL; local
136 ifaddrp->ia_next = ifaddrs;
137 ifaddrs = ifaddrp;
144 *ifaddrsp = ifaddrs;
151 ifaddrlistx_free(ifaddrs);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dif_mpadm.c150 ifaddrlistx_t *ifaddrp, *ifaddrs; local
162 if (ifaddrlistx(ifname, IFF_UP, 0, &ifaddrs) == -1)
165 for (ifaddrp = ifaddrs; ifaddrp != NULL; ifaddrp = ifaddrp->ia_next) {
175 ifaddrlistx_free(ifaddrs);
181 ifaddrlistx_t *ifaddrp, *ifaddrs; local
190 if (ifaddrlistx(ifname, 0, IFF_UP, &ifaddrs) == -1)
193 for (ifaddrp = ifaddrs; ifaddrp != NULL; ifaddrp = ifaddrp->ia_next) {
201 ifaddrlistx_free(ifaddrs);
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_if.c54 i_ipadm_is_if_down(char *ifname, struct ifaddrs *ifa)
56 struct ifaddrs *ifap;
253 struct ifaddrs *ifa;
254 struct ifaddrs *ifap;
274 * Find the `ifaddrs' structure from `ifa'
945 ifaddrlistx_t *ifaddrs, *ifaddrp; local
1018 0, &ifaddrs) == -1) {
1022 ifaddrp = ifaddrs;
1037 ifaddrlistx_free(ifaddrs);
1045 ifaddrlistx_free(ifaddrs);
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/
H A Difconfig.c23 #include <ifaddrs.h>
189 struct ifaddrs *ifa);
527 struct ifaddrs *ifa;
611 ifconfig(int argc, char *argv[], int af, struct ifaddrs *ifa)
1621 ifaddrlistx_t *ifaddrp, *ifaddrs = NULL; local
1669 if (ifaddrlistx(name, IFF_UP, 0, &ifaddrs) == -1)
1672 ifaddrp = ifaddrs;
1695 for (ifaddrp = ifaddrs; ifaddrp != NULL; ifaddrp = ifaddrp->ia_next) {
1699 ifaddrlistx_free(ifaddrs);
2097 ifaddrlistx_t *ifaddrs local
[all...]

Completed in 54 milliseconds