|
22 | 22 | #include <asm/byteorder.h> |
23 | 23 | #include <linux/types.h> |
24 | 24 |
|
| 25 | +/** |
| 26 | + * batadv_tp_is_error() - Check throughput meter return code for error |
| 27 | + * @n: throughput meter return code |
| 28 | + * |
| 29 | + * Return: 0 when not error was detected, != 0 otherwise |
| 30 | + */ |
25 | 31 | #define batadv_tp_is_error(n) ((u8)(n) > 127 ? 1 : 0) |
26 | 32 |
|
27 | 33 | /** |
@@ -89,7 +95,15 @@ enum batadv_iv_flags { |
89 | 95 | BATADV_DIRECTLINK = BIT(2), |
90 | 96 | }; |
91 | 97 |
|
92 | | -/* ICMP message types */ |
| 98 | +/** |
| 99 | + * enum batadv_icmp_packettype - ICMP message types |
| 100 | + * @BATADV_ECHO_REPLY: success reply to BATADV_ECHO_REQUEST |
| 101 | + * @BATADV_DESTINATION_UNREACHABLE: failure when route to destination not found |
| 102 | + * @BATADV_ECHO_REQUEST: request BATADV_ECHO_REPLY from destination |
| 103 | + * @BATADV_TTL_EXCEEDED: error after BATADV_ECHO_REQUEST traversed too many hops |
| 104 | + * @BATADV_PARAMETER_PROBLEM: return code for malformed messages |
| 105 | + * @BATADV_TP: throughput meter packet |
| 106 | + */ |
93 | 107 | enum batadv_icmp_packettype { |
94 | 108 | BATADV_ECHO_REPLY = 0, |
95 | 109 | BATADV_DESTINATION_UNREACHABLE = 3, |
@@ -137,7 +151,14 @@ enum batadv_vlan_flags { |
137 | 151 | BATADV_VLAN_HAS_TAG = BIT(15), |
138 | 152 | }; |
139 | 153 |
|
140 | | -/* claim frame types for the bridge loop avoidance */ |
| 154 | +/** |
| 155 | + * enum batadv_bla_claimframe - claim frame types for the bridge loop avoidance |
| 156 | + * @BATADV_CLAIM_TYPE_CLAIM: claim of a client mac address |
| 157 | + * @BATADV_CLAIM_TYPE_UNCLAIM: unclaim of a client mac address |
| 158 | + * @BATADV_CLAIM_TYPE_ANNOUNCE: announcement of backbone with current crc |
| 159 | + * @BATADV_CLAIM_TYPE_REQUEST: request of full claim table |
| 160 | + * @BATADV_CLAIM_TYPE_LOOPDETECT: mesh-traversing loop detect packet |
| 161 | + */ |
141 | 162 | enum batadv_bla_claimframe { |
142 | 163 | BATADV_CLAIM_TYPE_CLAIM = 0x00, |
143 | 164 | BATADV_CLAIM_TYPE_UNCLAIM = 0x01, |
|
0 commit comments