]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Use sanatized headers from 2.6.29
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Tue, 24 Mar 2009 22:13:31 +0000 (15:13 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Tue, 24 Mar 2009 22:13:31 +0000 (15:13 -0700)
Update to final 2.6.29 headers

22 files changed:
include/linux/atm.h
include/linux/genetlink.h
include/linux/if.h
include/linux/if_addr.h
include/linux/if_addrlabel.h
include/linux/if_link.h
include/linux/if_tunnel.h
include/linux/inet_diag.h
include/linux/ip6_tunnel.h
include/linux/neighbour.h
include/linux/pkt_cls.h
include/linux/pkt_sched.h
include/linux/rtnetlink.h
include/linux/socket.h
include/linux/tc_act/tc_gact.h
include/linux/tc_act/tc_mirred.h
include/linux/tc_act/tc_pedit.h
include/linux/tc_ematch/tc_em_cmp.h
include/linux/tc_ematch/tc_em_meta.h
include/linux/tc_ematch/tc_em_nbyte.h
include/linux/types.h
include/linux/xfrm.h

index 6de1627034649594b206b61f1c512a00e81aa7e6..5e1c36d1c281ec3ca104677fa3ba561fcc3ece90 100644 (file)
@@ -231,10 +231,11 @@ static __inline__ int atmpvc_addr_in_use(struct sockaddr_atmpvc addr)
  */
 
 struct atmif_sioc {
-    int number;
-    int length;
-    void *arg;
+       int number;
+       int length;
+       void *arg;
 };
 
+
 typedef unsigned short atm_backend_t;
 #endif
index 7da02c93002b4fd1f955230463ce0354aee3da95..b834ef6d59fa459ca793a004c311fe363e5a68fa 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_GENERIC_NETLINK_H
 #define __LINUX_GENERIC_NETLINK_H
 
+#include <linux/types.h>
 #include <linux/netlink.h>
 
 #define GENL_NAMSIZ    16      /* length of family name */
index 2c3ccc73fdce82b3bad669647f40052a4595e367..6d7bd525fc9777c7681f5c684ce78f54c4b68956 100644 (file)
@@ -65,6 +65,7 @@
 #define IFF_BONDING    0x20            /* bonding master or slave      */
 #define IFF_SLAVE_NEEDARP 0x40         /* need ARPs for validation     */
 #define IFF_ISATAP     0x80            /* ISATAP interface (RFC4214)   */
+#define IFF_MASTER_ARPMON 0x100                /* bonding master, ARP mon in use */
 
 #define IF_GET_IFACE   0x0001          /* for querying only */
 #define IF_GET_PROTO   0x0002
index befcb3c2e161e8d0ebfa6eaa81aa1646ff8a121c..08ea9800bace1d0282517352c44805e8c993a811 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_IF_ADDR_H
 #define __LINUX_IF_ADDR_H
 
+#include <linux/types.h>
 #include <linux/netlink.h>
 
 struct ifaddrmsg
index 9fe79c95dd2808960b6770c6928eb72f3cf13384..89571f65d6ded5d25bdfa6951e88c23131a7b724 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __LINUX_IF_ADDRLABEL_H
 #define __LINUX_IF_ADDRLABEL_H
 
+#include <linux/types.h>
+
 struct ifaddrlblmsg
 {
        __u8            ifal_family;            /* Address family */
index c1fd1a8685543f7c791ad113ef09d9b329d27187..b0b9e8a6662d419b10655ef65935ecd0bdabf848 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _LINUX_IF_LINK_H
 #define _LINUX_IF_LINK_H
 
+#include <linux/types.h>
 #include <linux/netlink.h>
 
 /* The struct should be in sync with struct net_device_stats */
index aeab2cb32a9cd94048763941101bec458f2461d6..2918c6facda342521b2ce09942c70e0e835ff499 100644 (file)
@@ -2,7 +2,7 @@
 #define _IF_TUNNEL_H_
 
 #include <linux/types.h>
-#include <linux/ip.h>
+
 
 #define SIOCGETTUNNEL   (SIOCDEVPRIVATE + 0)
 #define SIOCADDTUNNEL   (SIOCDEVPRIVATE + 1)
index 1ae93033388afb568ef8fbe27fc982a0790be1fa..1107ed2b9a7e2e381cf339479894cfb306cb0eea 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _INET_DIAG_H_
 #define _INET_DIAG_H_ 1
 
+#include <linux/types.h>
+
 /* Just some random number */
 #define TCPDIAG_GETSOCK 18
 #define DCCPDIAG_GETSOCK 19
index 1e7cc4af40deac588512e9715c77611c374b431c..acb9ad684d639167c6a2c1469e14eb1d6694e93b 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _IP6_TUNNEL_H
 #define _IP6_TUNNEL_H
 
+#include <linux/types.h>
+
 #define IPV6_TLV_TNL_ENCAP_LIMIT 4
 #define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4
 
index bd3bbf668cdb009292195056d2e8be292dd6e97e..8730d5dae1bc2a3c5b8a33aab453cb8382a19dcf 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_NEIGHBOUR_H
 #define __LINUX_NEIGHBOUR_H
 
+#include <linux/types.h>
 #include <linux/netlink.h>
 
 struct ndmsg
index 7cf7824df77814b327b1fb4abbd263273bd55bf4..3c842edff388c90ef76bab969322cddfa7e076d1 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_PKT_CLS_H
 #define __LINUX_PKT_CLS_H
 
+#include <linux/types.h>
 #include <linux/pkt_sched.h>
 
 /* I think i could have done better macros ; for now this is stolen from
@@ -394,6 +395,20 @@ enum
 
 #define TCA_BASIC_MAX (__TCA_BASIC_MAX - 1)
 
+
+/* Cgroup classifier */
+
+enum
+{
+       TCA_CGROUP_UNSPEC,
+       TCA_CGROUP_ACT,
+       TCA_CGROUP_POLICE,
+       TCA_CGROUP_EMATCHES,
+       __TCA_CGROUP_MAX,
+};
+
+#define TCA_CGROUP_MAX (__TCA_CGROUP_MAX - 1)
+
 /* Extended Matches */
 
 struct tcf_ematch_tree_hdr
index 8495053df5ef3e3ad3753315fe9cd07204bf4720..d51a2b3e221e76a6146fddf8050b2891f809dbb4 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_PKT_SCHED_H
 #define __LINUX_PKT_SCHED_H
 
+#include <linux/types.h>
+
 /* Logical priority bands not depending on specific packet scheduler.
    Every scheduler will map them to real traffic classes, if it has
    no more precise mechanism to classify packets.
index ec9de803043318e068dcc35a564ea499e387fbb4..63d1c697ec0c41de6f540fb8610ef7149bd9be50 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_RTNETLINK_H
 #define __LINUX_RTNETLINK_H
 
+#include <linux/types.h>
 #include <linux/netlink.h>
 #include <linux/if_link.h>
 #include <linux/if_addr.h>
@@ -107,6 +108,11 @@ enum {
        RTM_GETADDRLABEL,
 #define RTM_GETADDRLABEL RTM_GETADDRLABEL
 
+       RTM_GETDCB = 78,
+#define RTM_GETDCB RTM_GETDCB
+       RTM_SETDCB,
+#define RTM_SETDCB RTM_SETDCB
+
        __RTM_MAX,
 #define RTM_MAX                (((__RTM_MAX + 3) & ~3) - 1)
 };
@@ -211,7 +217,7 @@ enum
 #define RTPROT_DNROUTED        13      /* DECnet routing daemon */
 #define RTPROT_XORP    14      /* XORP */
 #define RTPROT_NTK     15      /* Netsukuku */
-#define RTPROT_DHCP     16      /* DHCP client */
+#define RTPROT_DHCP    16      /* DHCP client */
 
 /* rtm_scope
 
index 0a2418d9eaeaad88976b8dc2a9a914c09710febd..e9fa95f77a5697bb2e872c9b57581c79211cdc13 100644 (file)
@@ -105,7 +105,7 @@ struct cmsghdr {
 #if    defined(__GNUC__) 
 #define __KINLINE static __inline__
 #elif defined(__cplusplus)
-#define __KINLINE static inline
+#define __KINLINE static __inline__
 #else
 #define __KINLINE static
 #endif
index 23a03eb630db07996c69d2b12b0c09d7eac45171..e895c0a396291a64e3010a4f30824bdfab20ceb7 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_TC_GACT_H
 #define __LINUX_TC_GACT_H
 
+#include <linux/types.h>
 #include <linux/pkt_cls.h>
 
 #define TCA_ACT_GACT 5
index 71d63409d5684154c515a2c57b5cbe919f045ef3..0a99ab60d61083026908fa38fba1395abec50090 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_TC_MIR_H
 #define __LINUX_TC_MIR_H
 
+#include <linux/types.h>
 #include <linux/pkt_cls.h>
 
 #define TCA_ACT_MIRRED 8
index 83e56e32e8e050d6733527bb3329abb1807d362e..54ce9064115a43a18d9cf5061d7bb09ec1c67614 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_TC_PED_H
 #define __LINUX_TC_PED_H
 
+#include <linux/types.h>
 #include <linux/pkt_cls.h>
 
 #define TCA_ACT_PEDIT 7
index c7f4d43618fd8e9282a3053d7d8612b5676bc84e..38e7f7b25ec2de7d4aa02b0ac26bb8cd4db6b99e 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_TC_EM_CMP_H
 #define __LINUX_TC_EM_CMP_H
 
+#include <linux/types.h>
 #include <linux/pkt_cls.h>
 
 struct tcf_em_cmp
index c50d2ba5caf004ea9b8a33a12d27fa859a4e4864..dcfb733fa1f6660542696362df20bbd94f6e8701 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_TC_EM_META_H
 #define __LINUX_TC_EM_META_H
 
+#include <linux/types.h>
 #include <linux/pkt_cls.h>
 
 enum
index f19d1f58ec9df4c834b848290309ea1a319a3919..9ed8c2e58488933fa337784b4f108cdcfcc39c38 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_TC_EM_NBYTE_H
 #define __LINUX_TC_EM_NBYTE_H
 
+#include <linux/types.h>
 #include <linux/pkt_cls.h>
 
 struct tcf_em_nbyte
index d17027a9ef9fecde7b21ac051c0322c89fb3828b..eb6a9bec80927e2bb87c1e526d0976c9a2c52e35 100644 (file)
@@ -108,19 +108,14 @@ typedef           __s64           int64_t;
  *
  * Linux always considers sectors to be 512 bytes long independently
  * of the devices real block size.
+ *
+ * blkcnt_t is the type of the inode's block count.
  */
 #ifdef CONFIG_LBD
 typedef u64 sector_t;
-#else
-typedef unsigned long sector_t;
-#endif
-
-/*
- * The type of the inode's block count.
- */
-#ifdef CONFIG_LSF
 typedef u64 blkcnt_t;
 #else
+typedef unsigned long sector_t;
 typedef unsigned long blkcnt_t;
 #endif
 
@@ -154,10 +149,9 @@ typedef __u16 __bitwise __le16;
 typedef __u16 __bitwise __be16;
 typedef __u32 __bitwise __le32;
 typedef __u32 __bitwise __be32;
-#if defined(__GNUC__)
 typedef __u64 __bitwise __le64;
 typedef __u64 __bitwise __be64;
-#endif
+
 typedef __u16 __bitwise __sum16;
 typedef __u32 __bitwise __wsum;
 
index da2f1feb61d665260a7dffa5626206edf1996398..63dcf4a1b2fe18ddd589535f347c55a99ef9cd61 100644 (file)
@@ -199,6 +199,9 @@ enum {
 #define XFRM_MSG_NEWSPDINFO XFRM_MSG_NEWSPDINFO
        XFRM_MSG_GETSPDINFO,
 #define XFRM_MSG_GETSPDINFO XFRM_MSG_GETSPDINFO
+
+       XFRM_MSG_MAPPING,
+#define XFRM_MSG_MAPPING XFRM_MSG_MAPPING
        __XFRM_MSG_MAX
 };
 #define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1)
@@ -438,6 +441,15 @@ struct xfrm_user_migrate {
        __u16                           new_family;
 };
 
+struct xfrm_user_mapping {
+       struct xfrm_usersa_id           id;
+       __u32                           reqid;
+       xfrm_address_t                  old_saddr;
+       xfrm_address_t                  new_saddr;
+       __be16                          old_sport;
+       __be16                          new_sport;
+};
+
 /* backwards compatibility for userspace */
 #define XFRMGRP_ACQUIRE                1
 #define XFRMGRP_EXPIRE         2
@@ -462,6 +474,8 @@ enum xfrm_nlgroups {
 #define XFRMNLGRP_REPORT       XFRMNLGRP_REPORT
        XFRMNLGRP_MIGRATE,
 #define XFRMNLGRP_MIGRATE      XFRMNLGRP_MIGRATE
+       XFRMNLGRP_MAPPING,
+#define XFRMNLGRP_MAPPING      XFRMNLGRP_MAPPING
        __XFRMNLGRP_MAX
 };
 #define XFRMNLGRP_MAX  (__XFRMNLGRP_MAX - 1)