]>
Commit | Line | Data |
---|---|---|
9714c020 YW |
1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
2 | #pragma once | |
3 | ||
01234e1f | 4 | /* linux/in6.h or netinet/in.h */ |
9714c020 YW |
5 | #ifndef IPV6_UNICAST_IF |
6 | #define IPV6_UNICAST_IF 76 | |
7 | #endif | |
8 | ||
01234e1f | 9 | /* Not exposed but defined at include/net/ip.h */ |
9714c020 YW |
10 | #ifndef IPV4_MIN_MTU |
11 | #define IPV4_MIN_MTU 68 | |
12 | #endif | |
13 | ||
01234e1f | 14 | /* linux/ipv6.h */ |
9714c020 YW |
15 | #ifndef IPV6_MIN_MTU |
16 | #define IPV6_MIN_MTU 1280 | |
17 | #endif | |
18 | ||
01234e1f | 19 | /* Note that LOOPBACK_IFINDEX is currently not exposed by the |
ec3f6df9 YW |
20 | * kernel/glibc, but hardcoded internally by the kernel. However, as |
21 | * it is exported to userspace indirectly via rtnetlink and the | |
22 | * ioctls, and made use of widely we define it here too, in a way that | |
23 | * is compatible with the kernel's internal definition. */ | |
24 | #ifndef LOOPBACK_IFINDEX | |
25 | #define LOOPBACK_IFINDEX 1 | |
26 | #endif | |
8f849570 YW |
27 | |
28 | /* Not exposed yet. Similar values are defined in net/ethernet.h */ | |
29 | #ifndef ETHERTYPE_LLDP | |
30 | #define ETHERTYPE_LLDP 0x88cc | |
31 | #endif |