2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2018-12-02 16:27:02 +01:00
|
|
|
#pragma once
|
|
|
|
|
2019-04-10 12:55:53 +02:00
|
|
|
/* linux/in6.h or netinet/in.h */
|
2018-12-02 16:27:02 +01:00
|
|
|
#ifndef IPV6_UNICAST_IF
|
|
|
|
#define IPV6_UNICAST_IF 76
|
|
|
|
#endif
|
|
|
|
|
2020-09-10 16:31:31 +02:00
|
|
|
/* linux/in6.h or netinet/in.h */
|
|
|
|
#ifndef IPV6_TRANSPARENT
|
|
|
|
#define IPV6_TRANSPARENT 75
|
|
|
|
#endif
|
|
|
|
|
2019-04-10 12:55:53 +02:00
|
|
|
/* Not exposed but defined at include/net/ip.h */
|
2018-12-02 16:27:02 +01:00
|
|
|
#ifndef IPV4_MIN_MTU
|
|
|
|
#define IPV4_MIN_MTU 68
|
|
|
|
#endif
|
|
|
|
|
2019-04-10 12:55:53 +02:00
|
|
|
/* linux/ipv6.h */
|
2018-12-02 16:27:02 +01:00
|
|
|
#ifndef IPV6_MIN_MTU
|
|
|
|
#define IPV6_MIN_MTU 1280
|
|
|
|
#endif
|
|
|
|
|
2019-04-10 12:55:53 +02:00
|
|
|
/* Note that LOOPBACK_IFINDEX is currently not exposed by the
|
2018-12-04 10:44:55 +01:00
|
|
|
* 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
|
2018-12-06 06:27:51 +01:00
|
|
|
|
|
|
|
/* Not exposed yet. Similar values are defined in net/ethernet.h */
|
|
|
|
#ifndef ETHERTYPE_LLDP
|
|
|
|
#define ETHERTYPE_LLDP 0x88cc
|
|
|
|
#endif
|