1
0
mirror of https://github.com/rtbrick/bngblaster.git synced 2024-05-06 15:54:57 +00:00

fix lspgen ISIS fragment size

This commit is contained in:
Christian Giese
2024-04-30 11:42:59 +00:00
parent 95c48aa82e
commit 82ff68f0f2
2 changed files with 2 additions and 2 deletions

View File

@@ -305,7 +305,7 @@ typedef struct lsdb_attr_ {
} lsdb_attr_t;
#define MAX_OSPF_PACKET 1000 /* 16384 * 1000 bytes total LSA advertisement size */
#define MAX_ISIS_FRAGMENT 256 /* 1465 * 256 bytes total LSP advertisement size */
#define MAX_ISIS_FRAGMENT 256 /* 1462 * 256 bytes total LSP advertisement size */
/*
* An serialized LSA/LSP hanging off a node.

View File

@@ -1731,7 +1731,7 @@ lspgen_should_start_new_packet (lsdb_ctx_t *ctx, struct lsdb_packet_ *packet, st
switch (ctx->protocol_id) {
case PROTO_ISIS:
min_len =+ TLV_OVERHEAD;
if (packet->buf[0].idx > (1465-min_len)) {
if (packet->buf[0].idx > (1462-min_len)) {
return true;
}
break;