Lines Matching refs:cfg
60 struct net_if_config *cfg; in acd_event_handler() local
63 cfg = net_if_get_config(iface); in acd_event_handler()
64 if (!cfg) { in acd_event_handler()
68 if (cfg->ipv4auto.iface == NULL) { in acd_event_handler()
84 if (!net_ipv4_addr_cmp(&cfg->ipv4auto.requested_ip, addr)) { in acd_event_handler()
90 cfg->ipv4auto.state = NET_IPV4_AUTOCONF_ASSIGNED; in acd_event_handler()
97 cfg->ipv4auto.state = NET_IPV4_AUTOCONF_INIT; in acd_event_handler()
98 ipv4_autoconf_addr_set(&cfg->ipv4auto); in acd_event_handler()
108 struct net_if_config *cfg; in net_ipv4_autoconf_start() local
114 cfg = net_if_get_config(iface); in net_ipv4_autoconf_start()
115 if (!cfg) { in net_ipv4_autoconf_start()
120 if (cfg->ipv4auto.iface == iface) { in net_ipv4_autoconf_start()
124 cfg->ipv4auto.iface = iface; in net_ipv4_autoconf_start()
128 if (cfg->ipv4auto.state == NET_IPV4_AUTOCONF_ASSIGNED) { in net_ipv4_autoconf_start()
130 cfg->ipv4auto.state = NET_IPV4_AUTOCONF_RENEW; in net_ipv4_autoconf_start()
132 cfg->ipv4auto.state = NET_IPV4_AUTOCONF_INIT; in net_ipv4_autoconf_start()
135 ipv4_autoconf_addr_set(&cfg->ipv4auto); in net_ipv4_autoconf_start()
140 struct net_if_config *cfg; in net_ipv4_autoconf_reset() local
142 cfg = net_if_get_config(iface); in net_ipv4_autoconf_reset()
143 if (!cfg) { in net_ipv4_autoconf_reset()
147 net_if_ipv4_addr_rm(iface, &cfg->ipv4auto.requested_ip); in net_ipv4_autoconf_reset()