]> git.proxmox.com Git - mirror_frr.git/commitdiff
isisd: Expand send/receive buffers to allow for larger mtu
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 21 Mar 2020 12:22:51 +0000 (08:22 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 21 Mar 2020 12:22:51 +0000 (08:22 -0400)
User is reporting:
2020/03/21 03:12:36 ISIS: isis_send_pdu_bcast: sock_buff size 8192 is less than output pdu size 9014 on circuit em0
2020/03/21 03:12:36 ISIS: [EC 67108865] ISIS-Adj (1): Send L2 IIH on em0 failed

MTU's can frequently hit 9k in size, we have buffer limits
that prevent this from being fully used and creating errors.

Modify the code to allow for up to 16k mtu

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
isisd/isis_bpf.c
isisd/isis_dlpi.c

index e916a50883c3b54fcabde940f03ddb68f7d5cb6b..19695e7ab46ac34c0a71950f13824a6558adabb5 100644 (file)
@@ -73,7 +73,7 @@ static const uint8_t ALL_ISS[6] = {0x09, 0x00, 0x2B, 0x00, 0x00, 0x05};
 static const uint8_t ALL_ESS[6] = {0x09, 0x00, 0x2B, 0x00, 0x00, 0x04};
 #endif
 
-static char sock_buff[8192];
+static char sock_buff[16384];
 
 static int open_bpf_dev(struct isis_circuit *circuit)
 {
index ea16f4af7f75395d6df38e13f73ff883f495fc99..5c15d1d29df298a8c12f8d80ac9389a696655cc7 100644 (file)
@@ -62,7 +62,7 @@ static const uint8_t ALL_ISS[6] = {0x09, 0x00, 0x2B, 0x00, 0x00, 0x05};
 static const uint8_t ALL_ESS[6] = {0x09, 0x00, 0x2B, 0x00, 0x00, 0x04};
 #endif
 
-static uint8_t sock_buff[8192];
+static uint8_t sock_buff[16384];
 
 static unsigned short pf_filter[] = {
        ENF_PUSHWORD + 0,       /* Get the SSAP/DSAP values */