The mesh interface can fragment unicast packets when the packet size exceeds the outgoing slave/hard-interface MTU. The BATADV_CMD_SET_MESH/BATADV_CMD_GET_MESH commands allow to set/get the configuration of this feature using the BATADV_ATTR_FRAGMENTATION_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
| @@ -396,6 +396,13 @@ enum batadv_nl_attrs { · 395 unmodified lines | ||
| 396 | 396 | */ |
| 397 | 397 | BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED, |
| 398 | 398 | |
| 399 | + /** | |
| 400 | + * @BATADV_ATTR_FRAGMENTATION_ENABLED: whether the data traffic going | |
| 401 | + * through the mesh will be fragmented or silently discarded if the | |
| 402 | + * packet size exceeds the outgoing interface MTU. | |
| 403 | + */ | |
| 404 | + BATADV_ATTR_FRAGMENTATION_ENABLED, | |
| 405 | + | |
| 399 | 406 | /* add attributes above here, update the policy in netlink.c */ |
| 400 | 407 | |
| 401 | 408 | /** |