Searched refs:ifaddrp (Results 1 – 4 of 4) sorted by relevance
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | if_mpadm.c | 150 ifaddrlistx_t *ifaddrp, *ifaddrs; in do_offline() local 165 for (ifaddrp = ifaddrs; ifaddrp != NULL; ifaddrp = ifaddrp->ia_next) { in do_offline() 166 if (!(ifaddrp->ia_flags & IFF_OFFLINE)) in do_offline() 167 warn("IFF_OFFLINE vanished on %s\n", ifaddrp->ia_name); in do_offline() 169 if (!set_lifflags(ifaddrp->ia_name, in do_offline() 170 ifaddrp->ia_flags & ~IFF_UP)) in do_offline() 172 ifaddrp->ia_name); in do_offline() 181 ifaddrlistx_t *ifaddrp, *ifaddrs; in undo_offline() local 193 for (ifaddrp = ifaddrs; ifaddrp != NULL; ifaddrp = ifaddrp->ia_next) { in undo_offline() 194 if (!(ifaddrp->ia_flags & IFF_OFFLINE)) in undo_offline() [all …]
|
/titanic_41/usr/src/lib/libinetutil/common/ |
H A D | ifaddrlistx.c | 46 ifaddrlistx_t *ifaddrp, *ifaddrs = NULL; in ifaddrlistx() local 130 if ((ifaddrp = malloc(sizeof (ifaddrlistx_t))) == NULL) in ifaddrlistx() 133 (void) strlcpy(ifaddrp->ia_name, lifrp->lifr_name, LIFNAMSIZ); in ifaddrlistx() 134 ifaddrp->ia_flags = lifrp->lifr_flags; in ifaddrlistx() 135 ifaddrp->ia_addr = addr; in ifaddrlistx() 136 ifaddrp->ia_next = ifaddrs; in ifaddrlistx() 137 ifaddrs = ifaddrp; in ifaddrlistx() 160 ifaddrlistx_free(ifaddrlistx_t *ifaddrp) in ifaddrlistx_free() argument 164 for (; ifaddrp != NULL; ifaddrp = next_ifaddrp) { in ifaddrlistx_free() 165 next_ifaddrp = ifaddrp->ia_next; in ifaddrlistx_free() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | ifconfig.c | 209 static boolean_t ifaddr_up(ifaddrlistx_t *ifaddrp); 210 static boolean_t ifaddr_down(ifaddrlistx_t *ifaddrp); 1621 ifaddrlistx_t *ifaddrp, *ifaddrs = NULL; in setifether() local 1672 ifaddrp = ifaddrs; in setifether() 1673 for (; ifaddrp != NULL; ifaddrp = ifaddrp->ia_next) { in setifether() 1674 if (!ifaddr_down(ifaddrp)) { in setifether() 1675 Perror2_exit(ifaddrp->ia_name, in setifether() 1695 for (ifaddrp = ifaddrs; ifaddrp != NULL; ifaddrp = ifaddrp->ia_next) { in setifether() 1696 if (!ifaddr_up(ifaddrp)) in setifether() 1697 Perror2_exit(ifaddrp->ia_name, "cannot bring up"); in setifether() [all …]
|
/titanic_41/usr/src/lib/libipadm/common/ |
H A D | ipadm_if.c | 945 ifaddrlistx_t *ifaddrs, *ifaddrp; in i_ipadm_unplumb_if() local 1022 ifaddrp = ifaddrs; in i_ipadm_unplumb_if() 1023 for (; ifaddrp != NULL; ifaddrp = ifaddrp->ia_next) { in i_ipadm_unplumb_if() 1024 int sock = (ifaddrp->ia_flags & IFF_IPV4) ? in i_ipadm_unplumb_if() 1028 if (((ifaddrp->ia_flags & IFF_IPV6) && !v6) || in i_ipadm_unplumb_if() 1029 (!(ifaddrp->ia_flags & IFF_IPV6) && v6)) in i_ipadm_unplumb_if() 1033 (void) strlcpy(lifrl.lifr_name, ifaddrp->ia_name, in i_ipadm_unplumb_if()
|