]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/missing_network.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
4 /* linux/in6.h or netinet/in.h */
5 #ifndef IPV6_UNICAST_IF
6 #define IPV6_UNICAST_IF 76
9 /* linux/in6.h or netinet/in.h */
10 #ifndef IPV6_TRANSPARENT
11 #define IPV6_TRANSPARENT 75
14 /* Not exposed but defined at include/net/ip.h */
16 #define IPV4_MIN_MTU 68
21 #define IPV6_MIN_MTU 1280
24 /* Note that LOOPBACK_IFINDEX is currently not exposed by the
25 * kernel/glibc, but hardcoded internally by the kernel. However, as
26 * it is exported to userspace indirectly via rtnetlink and the
27 * ioctls, and made use of widely we define it here too, in a way that
28 * is compatible with the kernel's internal definition. */
29 #ifndef LOOPBACK_IFINDEX
30 #define LOOPBACK_IFINDEX 1
33 /* Not exposed yet. Similar values are defined in net/ethernet.h */
34 #ifndef ETHERTYPE_LLDP
35 #define ETHERTYPE_LLDP 0x88cc