History

batman-adv: Add distributed_arp_table mesh genl configuration

The mesh interface can use a distributed hash table to answer ARP requests without flooding the request through the whole mesh. The BATADV_CMD_SET_MESH/BATADV_CMD_GET_MESH commands allow to set/get the configuration of this feature using the BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED attribute. Setting the u8 to zero will disable this feature and setting it to something else is enabling this feature.

Sven Eckelmann committed 7 years ago

Commit a1c8de81 parent 43ff6102 files · +25 −0Browse files

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

Unified · Split

include/uapi/linux/batman_adv.h+8−0
@@ -388,6 +388,14 @@ enum batadv_nl_attrs { · 387 unmodified lines
388388 */
389389 BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED,
390390
391+ /**
392+ * @BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED: whether the distributed
393+ * arp table feature is enabled. This feature uses a distributed hash
394+ * table to answer ARP requests without flooding the request through
395+ * the whole mesh.
396+ */
397+ BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED,
398+
391399 /* add attributes above here, update the policy in netlink.c */
392400
393401 /**