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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -388,6 +388,14 @@ enum batadv_nl_attrs { · 387 unmodified lines | ||
| 388 | 388 | */ |
| 389 | 389 | BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED, |
| 390 | 390 | |
| 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 | + | |
| 391 | 399 | /* add attributes above here, update the policy in netlink.c */ |
| 392 | 400 | |
| 393 | 401 | /** |