summaryrefslogtreecommitdiff
path: root/src/basic/socket-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-11-16 15:01:03 +0100
committerLennart Poettering <lennart@poettering.net>2020-12-07 13:46:35 +0100
commit52975f86721e4f1c612dbf39f92a590edcea2b72 (patch)
treecf65f27ed67eb8e527131d26d9d493e406dedb33 /src/basic/socket-util.h
parent4e25d4cf0f78ef7c960f2b77c941e3d8751535df (diff)
downloadsystemd-52975f86721e4f1c612dbf39f92a590edcea2b72.tar.gz
socket-util: add common API for querying socket MTU
Diffstat (limited to 'src/basic/socket-util.h')
-rw-r--r--src/basic/socket-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/socket-util.h b/src/basic/socket-util.h
index 0dd6798d32..240d209c14 100644
--- a/src/basic/socket-util.h
+++ b/src/basic/socket-util.h
@@ -299,3 +299,5 @@ static inline int socket_set_transparent(int fd, int af, bool b) {
static inline int socket_set_recvfragsize(int fd, int af, bool b) {
return socket_set_option(fd, af, IP_RECVFRAGSIZE, IPV6_RECVFRAGSIZE, b);
}
+
+int socket_get_mtu(int fd, int af, size_t *ret);