diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-07 17:19:20 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-09 07:52:18 +0200 |
commit | 47a71f98529e73f262fd99b7ce77a69055b469b8 (patch) | |
tree | 3a8e8b8385d11c3fe331ad052b211ee27f4e3774 | |
parent | arphrd-list: use imported linux/if_arp.h (diff) | |
download | systemd-47a71f98529e73f262fd99b7ce77a69055b469b8.tar.xz systemd-47a71f98529e73f262fd99b7ce77a69055b469b8.zip |
missing_network: drop unnecessary definition
Now we have ipv6.h, hence the definition is not necessary anymore.
-rw-r--r-- | src/basic/missing_network.h | 5 | ||||
-rw-r--r-- | src/basic/parse-util.c | 1 | ||||
-rw-r--r-- | src/libsystemd-network/ndisc-option.c | 1 | ||||
-rw-r--r-- | src/network/networkd-setlink.c | 1 | ||||
-rw-r--r-- | src/resolve/resolved-manager.c | 1 | ||||
-rw-r--r-- | src/shared/conf-parser.c | 1 |
6 files changed, 5 insertions, 5 deletions
diff --git a/src/basic/missing_network.h b/src/basic/missing_network.h index ff5b30d3e1..ded1bc2f5e 100644 --- a/src/basic/missing_network.h +++ b/src/basic/missing_network.h @@ -23,11 +23,6 @@ #define IPV4_MIN_MTU 68 #endif -/* linux/ipv6.h */ -#ifndef IPV6_MIN_MTU -#define IPV6_MIN_MTU 1280 -#endif - /* Note that LOOPBACK_IFINDEX is currently not exposed by the * kernel/glibc, but hardcoded internally by the kernel. However, as * it is exported to userspace indirectly via rtnetlink and the diff --git a/src/basic/parse-util.c b/src/basic/parse-util.c index 7700c4edef..faa5344921 100644 --- a/src/basic/parse-util.c +++ b/src/basic/parse-util.c @@ -2,6 +2,7 @@ #include <errno.h> #include <inttypes.h> +#include <linux/ipv6.h> #include <net/if.h> #include <stdio.h> #include <stdlib.h> diff --git a/src/libsystemd-network/ndisc-option.c b/src/libsystemd-network/ndisc-option.c index 901a3b399b..af38c32be1 100644 --- a/src/libsystemd-network/ndisc-option.c +++ b/src/libsystemd-network/ndisc-option.c @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#include <linux/ipv6.h> #include <netinet/icmp6.h> #include "dns-domain.h" diff --git a/src/network/networkd-setlink.c b/src/network/networkd-setlink.c index 058bc00ba1..b1a2623dcd 100644 --- a/src/network/networkd-setlink.c +++ b/src/network/networkd-setlink.c @@ -4,6 +4,7 @@ #include <linux/if.h> #include <linux/if_arp.h> #include <linux/if_bridge.h> +#include <linux/ipv6.h> #include "missing_network.h" #include "netif-util.h" diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c index 210a71c9d5..c842bf69c5 100644 --- a/src/resolve/resolved-manager.c +++ b/src/resolve/resolved-manager.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #include <fcntl.h> +#include <linux/ipv6.h> #include <netinet/in.h> #include <poll.h> #include <sys/ioctl.h> diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 6db9431708..c2a42a1ae0 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -2,6 +2,7 @@ #include <errno.h> #include <limits.h> +#include <linux/ipv6.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> |