• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/libnl-tiny/include/netlink/netlink-compat.h

  1 /*
  2  * netlink/netlink-compat.h     Netlink Compatability
  3  *
  4  *      This library is free software; you can redistribute it and/or
  5  *      modify it under the terms of the GNU Lesser General Public
  6  *      License as published by the Free Software Foundation version 2.1
  7  *      of the License.
  8  *
  9  * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
 10  */
 11 
 12 #ifndef NETLINK_COMPAT_H_
 13 #define NETLINK_COMPAT_H_
 14 
 15 #if !defined _LINUX_SOCKET_H && !defined _BITS_SOCKADDR_H
 16 typedef unsigned short  sa_family_t;
 17 #endif
 18 
 19 #ifndef IFNAMSIZ 
 20 /** Maximum length of a interface name */
 21 #define IFNAMSIZ 16
 22 #endif
 23 
 24 /* patch 2.4.x if_arp */
 25 #ifndef ARPHRD_INFINIBAND
 26 #define ARPHRD_INFINIBAND 32
 27 #endif
 28 
 29 /* patch 2.4.x eth header file */
 30 #ifndef ETH_P_MPLS_UC
 31 #define ETH_P_MPLS_UC  0x8847 
 32 #endif
 33 
 34 #ifndef ETH_P_MPLS_MC
 35 #define ETH_P_MPLS_MC   0x8848
 36 #endif
 37 
 38 #ifndef  ETH_P_EDP2
 39 #define ETH_P_EDP2      0x88A2
 40 #endif
 41 
 42 #ifndef ETH_P_HDLC
 43 #define ETH_P_HDLC      0x0019 
 44 #endif
 45 
 46 #ifndef AF_LLC
 47 #define AF_LLC          26
 48 #endif
 49 
 50 #endif
 51 

This page was automatically generated by LXR 0.3.1.  •  OpenWrt