1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
4 #include <netinet/in.h> /* IWYU pragma: export */
6 /* Not exposed but defined at include/net/ip.h */
8 #define IPV4_MIN_MTU 68
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
20 /* Not exposed but defined in linux/netdevice.h */
21 #ifndef MAX_PHYS_ITEM_ID_LEN
22 #define MAX_PHYS_ITEM_ID_LEN 32
25 /* Not exposed but defined in include/net/bonding.h */
26 #ifndef BOND_MAX_ARP_TARGETS
27 #define BOND_MAX_ARP_TARGETS 16
30 /* Not exposed but defined in include/linux/ieee80211.h */
31 #ifndef IEEE80211_MAX_SSID_LEN
32 #define IEEE80211_MAX_SSID_LEN 32
35 /* Not exposed but defined in include/net/netlabel.h */
36 #ifndef NETLBL_NLTYPE_UNLABELED_NAME
37 #define NETLBL_NLTYPE_UNLABELED_NAME "NLBL_UNLBL"
40 /* Not exposed but defined in net/netlabel/netlabel_unlabeled.h */
42 NLBL_UNLABEL_C_UNSPEC
,
43 NLBL_UNLABEL_C_ACCEPT
,
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
,
54 /* Not exposed but defined in net/netlabel/netlabel_unlabeled.h */
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
,
63 NLBL_UNLABEL_A_SECCTX
,