]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
9714c020 YW |
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 | ||
5d0fe423 LP |
9 | /* linux/in6.h or netinet/in.h */ |
10 | #ifndef IPV6_TRANSPARENT | |
11 | #define IPV6_TRANSPARENT 75 | |
12 | #endif | |
13 | ||
01234e1f | 14 | /* Not exposed but defined at include/net/ip.h */ |
9714c020 YW |
15 | #ifndef IPV4_MIN_MTU |
16 | #define IPV4_MIN_MTU 68 | |
17 | #endif | |
18 | ||
01234e1f | 19 | /* linux/ipv6.h */ |
9714c020 YW |
20 | #ifndef IPV6_MIN_MTU |
21 | #define IPV6_MIN_MTU 1280 | |
22 | #endif | |
23 | ||
01234e1f | 24 | /* Note that LOOPBACK_IFINDEX is currently not exposed by the |
ec3f6df9 YW |
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 | |
31 | #endif | |
8f849570 YW |
32 | |
33 | /* Not exposed yet. Similar values are defined in net/ethernet.h */ | |
34 | #ifndef ETHERTYPE_LLDP | |
35 | #define ETHERTYPE_LLDP 0x88cc | |
36 | #endif | |
38d3bcde YW |
37 | |
38 | /* Not exposed but defined in linux/netdevice.h */ | |
39 | #ifndef MAX_PHYS_ITEM_ID_LEN | |
40 | #define MAX_PHYS_ITEM_ID_LEN 32 | |
41 | #endif | |
42 | ||
43 | /* Not exposed but defined in include/net/bonding.h */ | |
44 | #ifndef BOND_MAX_ARP_TARGETS | |
45 | #define BOND_MAX_ARP_TARGETS 16 | |
46 | #endif | |
f3e235ff YW |
47 | |
48 | /* Not exposed but defined in include/linux/ieee80211.h */ | |
49 | #ifndef IEEE80211_MAX_SSID_LEN | |
50 | #define IEEE80211_MAX_SSID_LEN 32 | |
51 | #endif | |
5b198025 TM |
52 | |
53 | /* Not exposed but defined in include/net/netlabel.h */ | |
54 | #ifndef NETLBL_NLTYPE_UNLABELED_NAME | |
55 | #define NETLBL_NLTYPE_UNLABELED_NAME "NLBL_UNLBL" | |
56 | #endif | |
57 | ||
58 | /* Not exposed but defined in net/netlabel/netlabel_unlabeled.h */ | |
59 | enum { | |
60 | NLBL_UNLABEL_C_UNSPEC, | |
61 | NLBL_UNLABEL_C_ACCEPT, | |
62 | NLBL_UNLABEL_C_LIST, | |
63 | NLBL_UNLABEL_C_STATICADD, | |
64 | NLBL_UNLABEL_C_STATICREMOVE, | |
65 | NLBL_UNLABEL_C_STATICLIST, | |
66 | NLBL_UNLABEL_C_STATICADDDEF, | |
67 | NLBL_UNLABEL_C_STATICREMOVEDEF, | |
68 | NLBL_UNLABEL_C_STATICLISTDEF, | |
69 | __NLBL_UNLABEL_C_MAX, | |
70 | }; | |
71 | ||
72 | /* Not exposed but defined in net/netlabel/netlabel_unlabeled.h */ | |
73 | enum { | |
74 | NLBL_UNLABEL_A_UNSPEC, | |
75 | NLBL_UNLABEL_A_ACPTFLG, | |
76 | NLBL_UNLABEL_A_IPV6ADDR, | |
77 | NLBL_UNLABEL_A_IPV6MASK, | |
78 | NLBL_UNLABEL_A_IPV4ADDR, | |
79 | NLBL_UNLABEL_A_IPV4MASK, | |
80 | NLBL_UNLABEL_A_IFACE, | |
81 | NLBL_UNLABEL_A_SECCTX, | |
82 | __NLBL_UNLABEL_A_MAX, | |
83 | }; |