| 1 |
/* SPDX-License-Identifier: LGPL-2.1-only */ |
| 2 |
/* |
| 3 |
* Copyright (c) 2003-2006 Thomas Graf <[email protected]> |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef NETLINK_COMPAT_H_ |
| 7 |
#define NETLINK_COMPAT_H_ |
| 8 |
|
| 9 |
#ifdef __cplusplus |
| 10 |
extern "C" { |
| 11 |
#endif |
| 12 |
|
| 13 |
#if !defined _LINUX_SOCKET_H && !defined _BITS_SOCKADDR_H |
| 14 |
typedef unsigned short sa_family_t; |
| 15 |
#endif |
| 16 |
|
| 17 |
#ifndef IFNAMSIZ |
| 18 |
/** Maximum length of a interface name */ |
| 19 |
#define IFNAMSIZ 16 |
| 20 |
#endif |
| 21 |
|
| 22 |
/* patch 2.4.x if_arp */ |
| 23 |
#ifndef ARPHRD_INFINIBAND |
| 24 |
#define ARPHRD_INFINIBAND 32 |
| 25 |
#endif |
| 26 |
|
| 27 |
/* patch 2.4.x eth header file */ |
| 28 |
#ifndef ETH_P_MPLS_UC |
| 29 |
#define ETH_P_MPLS_UC 0x8847 |
| 30 |
#endif |
| 31 |
|
| 32 |
#ifndef ETH_P_MPLS_MC |
| 33 |
#define ETH_P_MPLS_MC 0x8848 |
| 34 |
#endif |
| 35 |
|
| 36 |
#ifndef ETH_P_EDP2 |
| 37 |
#define ETH_P_EDP2 0x88A2 |
| 38 |
#endif |
| 39 |
|
| 40 |
#ifndef ETH_P_HDLC |
| 41 |
#define ETH_P_HDLC 0x0019 |
| 42 |
#endif |
| 43 |
|
| 44 |
#ifndef AF_LLC |
| 45 |
#define AF_LLC 26 |
| 46 |
#endif |
| 47 |
|
| 48 |
#ifndef AF_MPLS |
| 49 |
#define AF_MPLS 28 |
| 50 |
#endif |
| 51 |
|
| 52 |
#ifdef __cplusplus |
| 53 |
} |
| 54 |
#endif |
| 55 |
|
| 56 |
#endif |