libnl
3.2.3
|
00001 /* 00002 * netlink/netlink-compat.h Netlink Compatability 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation version 2.1 00007 * of the License. 00008 * 00009 * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch> 00010 */ 00011 00012 #ifndef NETLINK_COMPAT_H_ 00013 #define NETLINK_COMPAT_H_ 00014 00015 #if !defined _LINUX_SOCKET_H && !defined _BITS_SOCKADDR_H 00016 typedef unsigned short sa_family_t; 00017 #endif 00018 00019 #ifndef IFNAMSIZ 00020 /** Maximum length of a interface name */ 00021 #define IFNAMSIZ 16 00022 #endif 00023 00024 /* patch 2.4.x if_arp */ 00025 #ifndef ARPHRD_INFINIBAND 00026 #define ARPHRD_INFINIBAND 32 00027 #endif 00028 00029 /* patch 2.4.x eth header file */ 00030 #ifndef ETH_P_MPLS_UC 00031 #define ETH_P_MPLS_UC 0x8847 00032 #endif 00033 00034 #ifndef ETH_P_MPLS_MC 00035 #define ETH_P_MPLS_MC 0x8848 00036 #endif 00037 00038 #ifndef ETH_P_EDP2 00039 #define ETH_P_EDP2 0x88A2 00040 #endif 00041 00042 #ifndef ETH_P_HDLC 00043 #define ETH_P_HDLC 0x0019 00044 #endif 00045 00046 #ifndef AF_LLC 00047 #define AF_LLC 26 00048 #endif 00049 00050 #endif