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/eth/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ipcpd/eth/CMakeLists.txt') diff --git a/src/ipcpd/eth/CMakeLists.txt b/src/ipcpd/eth/CMakeLists.txt index abffbb2d..89575b6b 100644 --- a/src/ipcpd/eth/CMakeLists.txt +++ b/src/ipcpd/eth/CMakeLists.txt @@ -84,6 +84,8 @@ if (HAVE_ETH) "Number of writer threads in Ethernet IPCP") set(IPCP_ETH_QDISC_BYPASS false CACHE BOOL "Bypass the Qdisc in the kernel when using raw sockets") + set(IPCP_ETH_LO_MTU 1500 CACHE STRING + "Restrict Ethernet MTU over loopback interfaces") set(ETH_LLC_SOURCES # Add source files here -- cgit v1.2.3