Lines Matching refs:mode

93 int ipv6ll_addrgen_mode_fill_message(sd_netlink_message *message, IPv6LinkLocalAddressGenMode mode)…  in ipv6ll_addrgen_mode_fill_message()  argument
97 assert(mode >= 0 && mode < _IPV6_LINK_LOCAL_ADDRESS_GEN_MODE_MAX); in ipv6ll_addrgen_mode_fill_message()
107 r = sd_netlink_message_append_u8(message, IFLA_INET6_ADDR_GEN_MODE, mode); in ipv6ll_addrgen_mode_fill_message()
123 uint8_t mode; in link_update_ipv6ll_addrgen_mode() local
148 mode = (uint8_t) link->ipv6ll_address_gen_mode; in link_update_ipv6ll_addrgen_mode()
149 r = sd_netlink_message_read_u8(message, IFLA_INET6_ADDR_GEN_MODE, &mode); in link_update_ipv6ll_addrgen_mode()
161 if (mode == (uint8_t) link->ipv6ll_address_gen_mode) in link_update_ipv6ll_addrgen_mode()
164 if (mode >= _IPV6_LINK_LOCAL_ADDRESS_GEN_MODE_MAX) { in link_update_ipv6ll_addrgen_mode()
165 …link_debug(link, "Received invalid IPv6 link-local address generation mode (%u), ignoring.", mode); in link_update_ipv6ll_addrgen_mode()
171 ipv6_link_local_address_gen_mode_to_string(mode)); in link_update_ipv6ll_addrgen_mode()
175 ipv6_link_local_address_gen_mode_to_string(mode)); in link_update_ipv6ll_addrgen_mode()
177 link->ipv6ll_address_gen_mode = mode; in link_update_ipv6ll_addrgen_mode()
226 int link_set_ipv6ll_addrgen_mode(Link *link, IPv6LinkLocalAddressGenMode mode) { in link_set_ipv6ll_addrgen_mode() argument
228 assert(mode >= 0 && mode < _IPV6_LINK_LOCAL_ADDRESS_GEN_MODE_MAX); in link_set_ipv6ll_addrgen_mode()
230 if (mode == link->ipv6ll_address_gen_mode) in link_set_ipv6ll_addrgen_mode()
233 return sysctl_write_ip_property_uint32(AF_INET6, link->ifname, "addr_gen_mode", mode); in link_set_ipv6ll_addrgen_mode()