summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/batman_adv.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2018-11-23 13:09:49 +0100
committerSimon Wunderlich <sw@simonwunderlich.de>2019-02-09 14:28:14 +0100
commit3e15b06eb7e410ef9f1b9673be094b3e10eacf93 (patch)
treeedc2a261dcdc437418c1f9c3ea1c2d3aa033df54 /include/uapi/linux/batman_adv.h
parenta1c8de80329609ba68ff860074070efb1e14ade4 (diff)
downloadlinux-3e15b06eb7e410ef9f1b9673be094b3e10eacf93.tar.bz2
batman-adv: Add fragmentation mesh genl configuration
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. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'include/uapi/linux/batman_adv.h')
-rw-r--r--include/uapi/linux/batman_adv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/batman_adv.h b/include/uapi/linux/batman_adv.h
index f303a1496476..847841b8de5d 100644
--- a/include/uapi/linux/batman_adv.h
+++ b/include/uapi/linux/batman_adv.h
@@ -396,6 +396,13 @@ enum batadv_nl_attrs {
*/
BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED,
+ /**
+ * @BATADV_ATTR_FRAGMENTATION_ENABLED: whether the data traffic going
+ * through the mesh will be fragmented or silently discarded if the
+ * packet size exceeds the outgoing interface MTU.
+ */
+ BATADV_ATTR_FRAGMENTATION_ENABLED,
+
/* add attributes above here, update the policy in netlink.c */
/**