From 086cd5dae628556ffaa2c2efe559a5bd2fba8d0e Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 20 Mar 2019 18:33:47 +0100 Subject: ipcpd: Restrict MTU for Ethernet over loopback This restricts the MTU for the Ethernet IPCP over loopback adapters (devices named "lo*") to avoid it allocating 65K buffers per packet and quickly filling the default RDRBUFF space. The restriction is set using the build option IPCP_ETH_LO_MTU, with a default value of 1500 bytes. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/config.h.in | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ipcpd/config.h.in') diff --git a/src/ipcpd/config.h.in b/src/ipcpd/config.h.in index 8545021b..e050d656 100644 --- a/src/ipcpd/config.h.in +++ b/src/ipcpd/config.h.in @@ -65,3 +65,4 @@ #cmakedefine IPCP_ETH_QDISC_BYPASS #define IPCP_ETH_RD_THR @IPCP_ETH_RD_THR@ #define IPCP_ETH_WR_THR @IPCP_ETH_WR_THR@ +#define IPCP_ETH_LO_MTU @IPCP_ETH_LO_MTU@ -- cgit v1.2.3