package envoy.extensions.network.socket_interface.sockmap.v3

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message Sockmap

sockmap.proto:32

Configuration for the ``sockmap`` socket interface. It accelerates same-host TCP hops by loading eBPF ``sock_ops`` and ``sk_msg`` programs that redirect payloads between local sockets through a ``BPF_MAP_TYPE_SOCKHASH``, bypassing the kernel TCP/IP stack. Connections whose peer is not on the same host are not present in the map and transparently fall back to TCP/IP. This interface requires a Linux kernel 4.18 or later and the capabilities to load and attach the eBPF network programs (``CAP_SYS_ADMIN``, or ``CAP_BPF`` and ``CAP_NET_ADMIN`` on newer kernels). When the programs cannot be loaded or attached, the interface logs the failure and every socket falls back to the standard datapath, so traffic is never interrupted. [#next-free-field: 6]