Lines Matching +full:bridge +full:- +full:enable
20 struct hostapd_bss_config *conf = hapd->conf; in x_snoop_init()
22 if (!conf->isolate) { in x_snoop_init()
25 return -1; in x_snoop_init()
28 if (conf->bridge[0] == '\0') { in x_snoop_init()
30 "x_snoop: Bridge must be configured for x_snoop"); in x_snoop_init()
31 return -1; in x_snoop_init()
34 hapd->x_snoop_initialized = true; in x_snoop_init()
39 "x_snoop: Failed to enable hairpin_mode on the bridge port"); in x_snoop_init()
40 return -1; in x_snoop_init()
45 "x_snoop: Failed to enable proxyarp on the bridge port"); in x_snoop_init()
46 return -1; in x_snoop_init()
52 "x_snoop: Failed to enable accepting gratuitous ARP on the bridge"); in x_snoop_init()
53 return -1; in x_snoop_init()
59 "x_snoop: Failed to enable multicast snooping on the bridge"); in x_snoop_init()
60 return -1; in x_snoop_init()
74 struct hostapd_bss_config *conf = hapd->conf; in x_snoop_get_l2_packet()
77 l2 = l2_packet_init(conf->bridge, NULL, ETH_P_ALL, handler, hapd, 1); in x_snoop_get_l2_packet()
108 wpa_printf(MSG_EXCESSIVE, "x_snoop: Multicast-to-unicast conversion " in x_snoop_mcast_to_ucast_convert_send()
109 MACSTR " -> " MACSTR " (len %u)", in x_snoop_mcast_to_ucast_convert_send()
110 MAC2STR(dst_addr), MAC2STR(sta->addr), (unsigned int) len); in x_snoop_mcast_to_ucast_convert_send()
115 os_memcpy(buf, sta->addr, ETH_ALEN); in x_snoop_mcast_to_ucast_convert_send()
116 res = l2_packet_send(hapd->sock_dhcp, NULL, 0, buf, len); in x_snoop_mcast_to_ucast_convert_send()
120 MACSTR, MAC2STR(sta->addr)); in x_snoop_mcast_to_ucast_convert_send()
130 if (!hapd->x_snoop_initialized) in x_snoop_deinit()
135 hapd->x_snoop_initialized = false; in x_snoop_deinit()