mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
This reverts PR #23269 and its follow-up commit. Especially,2299b1cae3(partially), and3cf63830ac. The PR was merged without final approval, and has several issues: - The NetLabel for static addresses are not assigned, as labels are stored in the Address objects managed by Network, instead of Link. - If NetLabel is specified for a static address, then the address section will be invalid and the address will not be configured, - It should be implemented with Request object, - There is no test about the feature.
52 lines
1.3 KiB
C
52 lines
1.3 KiB
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
/* linux/in6.h or netinet/in.h */
|
|
#ifndef IPV6_UNICAST_IF
|
|
#define IPV6_UNICAST_IF 76
|
|
#endif
|
|
|
|
/* linux/in6.h or netinet/in.h */
|
|
#ifndef IPV6_TRANSPARENT
|
|
#define IPV6_TRANSPARENT 75
|
|
#endif
|
|
|
|
/* Not exposed but defined at include/net/ip.h */
|
|
#ifndef IPV4_MIN_MTU
|
|
#define IPV4_MIN_MTU 68
|
|
#endif
|
|
|
|
/* linux/ipv6.h */
|
|
#ifndef IPV6_MIN_MTU
|
|
#define IPV6_MIN_MTU 1280
|
|
#endif
|
|
|
|
/* Note that LOOPBACK_IFINDEX is currently not exposed by the
|
|
* kernel/glibc, but hardcoded internally by the kernel. However, as
|
|
* it is exported to userspace indirectly via rtnetlink and the
|
|
* ioctls, and made use of widely we define it here too, in a way that
|
|
* is compatible with the kernel's internal definition. */
|
|
#ifndef LOOPBACK_IFINDEX
|
|
#define LOOPBACK_IFINDEX 1
|
|
#endif
|
|
|
|
/* Not exposed yet. Similar values are defined in net/ethernet.h */
|
|
#ifndef ETHERTYPE_LLDP
|
|
#define ETHERTYPE_LLDP 0x88cc
|
|
#endif
|
|
|
|
/* Not exposed but defined in linux/netdevice.h */
|
|
#ifndef MAX_PHYS_ITEM_ID_LEN
|
|
#define MAX_PHYS_ITEM_ID_LEN 32
|
|
#endif
|
|
|
|
/* Not exposed but defined in include/net/bonding.h */
|
|
#ifndef BOND_MAX_ARP_TARGETS
|
|
#define BOND_MAX_ARP_TARGETS 16
|
|
#endif
|
|
|
|
/* Not exposed but defined in include/linux/ieee80211.h */
|
|
#ifndef IEEE80211_MAX_SSID_LEN
|
|
#define IEEE80211_MAX_SSID_LEN 32
|
|
#endif
|