summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzmw12306 <zmw12306@gmail.com>2025-04-05 15:24:06 -0400
committerzmw12306 <zmw12306@gmail.com>2025-04-05 15:24:06 -0400
commit16a0458dbcb3bd86c8a89b01434f94346b562464 (patch)
tree558c88591848b4a4196f4f02d196c664ff179310
parent44c4743e08710fd9dda12105ff6fbec2547faf51 (diff)
babel: fix incorrect check in known_ae()
The known_ae() function accepts AE values up to 4, but the RFC only defines AE values 0-3. Signed-off-by: zmw12306 <zmw12306@gmail.com>
-rw-r--r--babeld/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/babeld/message.c b/babeld/message.c
index 5a33d5c288..3d1dabce35 100644
--- a/babeld/message.c
+++ b/babeld/message.c
@@ -52,7 +52,7 @@ static const unsigned char tlv_min_length[MESSAGE_MAX + 1] =
static bool
known_ae(int ae)
{
- return ae <= 4;
+ return ae <= 3;
}
/* Parse a network prefix, encoded in the somewhat baroque compressed