diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-11-16 15:01:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-12-07 13:46:35 +0100 |
commit | 52975f86721e4f1c612dbf39f92a590edcea2b72 (patch) | |
tree | cf65f27ed67eb8e527131d26d9d493e406dedb33 /src/basic/socket-util.h | |
parent | 4e25d4cf0f78ef7c960f2b77c941e3d8751535df (diff) | |
download | systemd-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.h | 2 |
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); |