]>
Commit | Line | Data |
---|---|---|
1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ | |
2 | #pragma once | |
3 | ||
4 | #include <netinet/in.h> /* IWYU pragma: export */ | |
5 | ||
6 | /* Not exposed but defined at include/net/ip.h */ | |
7 | #ifndef IPV4_MIN_MTU | |
8 | #define IPV4_MIN_MTU 68 | |
9 | #endif | |
10 | ||
11 | /* Note that LOOPBACK_IFINDEX is currently not exposed by the | |
12 | * kernel/glibc, but hardcoded internally by the kernel. However, as | |
13 | * it is exported to userspace indirectly via rtnetlink and the | |
14 | * ioctls, and made use of widely we define it here too, in a way that | |
15 | * is compatible with the kernel's internal definition. */ | |
16 | #ifndef LOOPBACK_IFINDEX | |
17 | #define LOOPBACK_IFINDEX 1 | |
18 | #endif | |
19 | ||
20 | /* Not exposed but defined in linux/netdevice.h */ | |
21 | #ifndef MAX_PHYS_ITEM_ID_LEN | |
22 | #define MAX_PHYS_ITEM_ID_LEN 32 | |
23 | #endif | |
24 | ||
25 | /* Not exposed but defined in include/net/bonding.h */ | |
26 | #ifndef BOND_MAX_ARP_TARGETS | |
27 | #define BOND_MAX_ARP_TARGETS 16 | |
28 | #endif | |
29 | ||
30 | /* Not exposed but defined in include/linux/ieee80211.h */ | |
31 | #ifndef IEEE80211_MAX_SSID_LEN | |
32 | #define IEEE80211_MAX_SSID_LEN 32 | |
33 | #endif | |
34 | ||
35 | /* Not exposed but defined in include/net/netlabel.h */ | |
36 | #ifndef NETLBL_NLTYPE_UNLABELED_NAME | |
37 | #define NETLBL_NLTYPE_UNLABELED_NAME "NLBL_UNLBL" | |
38 | #endif | |
39 | ||
40 | /* Not exposed but defined in net/netlabel/netlabel_unlabeled.h */ | |
41 | enum { | |
42 | NLBL_UNLABEL_C_UNSPEC, | |
43 | NLBL_UNLABEL_C_ACCEPT, | |
44 | NLBL_UNLABEL_C_LIST, | |
45 | NLBL_UNLABEL_C_STATICADD, | |
46 | NLBL_UNLABEL_C_STATICREMOVE, | |
47 | NLBL_UNLABEL_C_STATICLIST, | |
48 | NLBL_UNLABEL_C_STATICADDDEF, | |
49 | NLBL_UNLABEL_C_STATICREMOVEDEF, | |
50 | NLBL_UNLABEL_C_STATICLISTDEF, | |
51 | __NLBL_UNLABEL_C_MAX, | |
52 | }; | |
53 | ||
54 | /* Not exposed but defined in net/netlabel/netlabel_unlabeled.h */ | |
55 | enum { | |
56 | NLBL_UNLABEL_A_UNSPEC, | |
57 | NLBL_UNLABEL_A_ACPTFLG, | |
58 | NLBL_UNLABEL_A_IPV6ADDR, | |
59 | NLBL_UNLABEL_A_IPV6MASK, | |
60 | NLBL_UNLABEL_A_IPV4ADDR, | |
61 | NLBL_UNLABEL_A_IPV4MASK, | |
62 | NLBL_UNLABEL_A_IFACE, | |
63 | NLBL_UNLABEL_A_SECCTX, | |
64 | __NLBL_UNLABEL_A_MAX, | |
65 | }; |