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:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user