From 207a1429366a1e5de9e59658a601274545971deb Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 21 Mar 2020 08:22:51 -0400 Subject: [PATCH] isisd: Expand send/receive buffers to allow for larger mtu 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 --- isisd/isis_bpf.c | 2 +- isisd/isis_dlpi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/isisd/isis_bpf.c b/isisd/isis_bpf.c index e916a5088..19695e7ab 100644 --- a/isisd/isis_bpf.c +++ b/isisd/isis_bpf.c @@ -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) { diff --git a/isisd/isis_dlpi.c b/isisd/isis_dlpi.c index ea16f4af7..5c15d1d29 100644 --- a/isisd/isis_dlpi.c +++ b/isisd/isis_dlpi.c @@ -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 */ -- 2.39.5