History

batman-adv: Add ap_isolation mesh/vlan genl configuration

The mesh interface can drop messages between clients to implement a mesh-wide AP isolation. The BATADV_CMD_SET_MESH/BATADV_CMD_GET_MESH and BATADV_CMD_SET_VLAN/BATADV_CMD_GET_VLAN commands allow to set/get the configuration of this feature using the BATADV_ATTR_AP_ISOLATION_ENABLED attribute. Setting the u8 to zero will disable this feature and setting it to something else is enabling this feature. This feature also requires that skbuff which should be handled as isolated are marked. The BATADV_CMD_SET_MESH/BATADV_CMD_GET_MESH commands allow to set/get the mark/mask using the u32 attributes BATADV_ATTR_ISOLATION_MARK and BATADV_ATTR_ISOLATION_MASK.

Sven Eckelmann committed 7 years ago

Commit e43d16b1 parent 9ab4cee2 files · +108 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/batman_adv.h+19−0
@@ -356,6 +356,25 @@ enum batadv_nl_attrs { · 355 unmodified lines
356356 */
357357 BATADV_ATTR_AGGREGATED_OGMS_ENABLED,
358358
359+ /**
360+ * @BATADV_ATTR_AP_ISOLATION_ENABLED: whether the data traffic going
361+ * from a wireless client to another wireless client will be silently
362+ * dropped.
363+ */
364+ BATADV_ATTR_AP_ISOLATION_ENABLED,
365+
366+ /**
367+ * @BATADV_ATTR_ISOLATION_MARK: the isolation mark which is used to
368+ * classify clients as "isolated" by the Extended Isolation feature.
369+ */
370+ BATADV_ATTR_ISOLATION_MARK,
371+
372+ /**
373+ * @BATADV_ATTR_ISOLATION_MASK: the isolation (bit)mask which is used to
374+ * classify clients as "isolated" by the Extended Isolation feature.
375+ */
376+ BATADV_ATTR_ISOLATION_MASK,
377+
359378 /* add attributes above here, update the policy in netlink.c */
360379
361380 /**