Lines Matching +full:down +full:- +full:counting

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
71 if (lattrs->ifla_ifalias != NULL) { in _nl_modify_ifp_generic()
72 if (nlp_has_priv(npt->nlp, PRIV_NET_SETIFDESCR)) { in _nl_modify_ifp_generic()
73 int len = strlen(lattrs->ifla_ifalias) + 1; in _nl_modify_ifp_generic()
76 memcpy(buf, lattrs->ifla_ifalias, len); in _nl_modify_ifp_generic()
85 if ((lattrs->ifi_change & IFF_UP) != 0 || lattrs->ifi_change == 0) { in _nl_modify_ifp_generic()
86 /* Request to up or down the interface */ in _nl_modify_ifp_generic()
87 if (lattrs->ifi_flags & IFF_UP) in _nl_modify_ifp_generic()
93 if (lattrs->ifla_mtu > 0) { in _nl_modify_ifp_generic()
94 if (nlp_has_priv(npt->nlp, PRIV_NET_SETIFMTU)) { in _nl_modify_ifp_generic()
95 struct ifreq ifr = { .ifr_mtu = lattrs->ifla_mtu }; in _nl_modify_ifp_generic()
108 if ((lattrs->ifi_change & IFF_PROMISC) != 0 || in _nl_modify_ifp_generic()
109 lattrs->ifi_change == 0) in _nl_modify_ifp_generic()
113 * reference counting through ifpromisc(). Every call to this in _nl_modify_ifp_generic()
117 if_setppromisc(ifp, (lattrs->ifi_flags & IFF_PROMISC) != 0); in _nl_modify_ifp_generic()
119 if (lattrs->ifla_address != NULL) { in _nl_modify_ifp_generic()
120 if (nlp_has_priv(npt->nlp, PRIV_NET_SETIFMAC)) { in _nl_modify_ifp_generic()
122 NLA_DATA(lattrs->ifla_address), in _nl_modify_ifp_generic()
123 NLA_DATA_LEN(lattrs->ifla_address)); in _nl_modify_ifp_generic()
159 nla_cookie->nla_len = nla_len; in _nl_store_ifp_cookie()
160 nla_cookie->nla_type = NLMSGERR_ATTR_COOKIE; in _nl_store_ifp_cookie()
163 nla->nla_len = sizeof(struct nlattr) + sizeof(ifindex); in _nl_store_ifp_cookie()
164 nla->nla_type = IFLA_NEW_IFINDEX; in _nl_store_ifp_cookie()
168 nla->nla_len = sizeof(struct nlattr) + ifname_len + 1; in _nl_store_ifp_cookie()
169 nla->nla_type = IFLA_IFNAME; in _nl_store_ifp_cookie()