libnl: /data/src/libnl3/include/netlink/netlink-compat.h Source File

libnl 3.7.0

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