diff options
Diffstat (limited to 'net/batman-adv/packet.h')
-rw-r--r-- | net/batman-adv/packet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h index 843b96ac355a..207459b62966 100644 --- a/net/batman-adv/packet.h +++ b/net/batman-adv/packet.h | |||
@@ -239,6 +239,8 @@ struct batadv_icmp_packet_rr { | |||
239 | uint8_t rr[BATADV_RR_LEN][ETH_ALEN]; | 239 | uint8_t rr[BATADV_RR_LEN][ETH_ALEN]; |
240 | }; | 240 | }; |
241 | 241 | ||
242 | #define BATADV_ICMP_MAX_PACKET_SIZE sizeof(struct batadv_icmp_packet_rr) | ||
243 | |||
242 | /* All packet headers in front of an ethernet header have to be completely | 244 | /* All packet headers in front of an ethernet header have to be completely |
243 | * divisible by 2 but not by 4 to make the payload after the ethernet | 245 | * divisible by 2 but not by 4 to make the payload after the ethernet |
244 | * header again 4 bytes boundary aligned. | 246 | * header again 4 bytes boundary aligned. |