Commit 67881151 authored by Stephen Hemminger's avatar Stephen Hemminger

Use sanatized headers from 2.6.29

Update to final 2.6.29 headers
parent ced61d7d
...@@ -236,5 +236,6 @@ struct atmif_sioc { ...@@ -236,5 +236,6 @@ struct atmif_sioc {
void *arg; void *arg;
}; };
typedef unsigned short atm_backend_t; typedef unsigned short atm_backend_t;
#endif #endif
#ifndef __LINUX_GENERIC_NETLINK_H #ifndef __LINUX_GENERIC_NETLINK_H
#define __LINUX_GENERIC_NETLINK_H #define __LINUX_GENERIC_NETLINK_H
#include <linux/types.h>
#include <linux/netlink.h> #include <linux/netlink.h>
#define GENL_NAMSIZ 16 /* length of family name */ #define GENL_NAMSIZ 16 /* length of family name */
......
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
#define IFF_BONDING 0x20 /* bonding master or slave */ #define IFF_BONDING 0x20 /* bonding master or slave */
#define IFF_SLAVE_NEEDARP 0x40 /* need ARPs for validation */ #define IFF_SLAVE_NEEDARP 0x40 /* need ARPs for validation */
#define IFF_ISATAP 0x80 /* ISATAP interface (RFC4214) */ #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_IFACE 0x0001 /* for querying only */
#define IF_GET_PROTO 0x0002 #define IF_GET_PROTO 0x0002
......
#ifndef __LINUX_IF_ADDR_H #ifndef __LINUX_IF_ADDR_H
#define __LINUX_IF_ADDR_H #define __LINUX_IF_ADDR_H
#include <linux/types.h>
#include <linux/netlink.h> #include <linux/netlink.h>
struct ifaddrmsg struct ifaddrmsg
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#ifndef __LINUX_IF_ADDRLABEL_H #ifndef __LINUX_IF_ADDRLABEL_H
#define __LINUX_IF_ADDRLABEL_H #define __LINUX_IF_ADDRLABEL_H
#include <linux/types.h>
struct ifaddrlblmsg struct ifaddrlblmsg
{ {
__u8 ifal_family; /* Address family */ __u8 ifal_family; /* Address family */
......
#ifndef _LINUX_IF_LINK_H #ifndef _LINUX_IF_LINK_H
#define _LINUX_IF_LINK_H #define _LINUX_IF_LINK_H
#include <linux/types.h>
#include <linux/netlink.h> #include <linux/netlink.h>
/* The struct should be in sync with struct net_device_stats */ /* The struct should be in sync with struct net_device_stats */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#define _IF_TUNNEL_H_ #define _IF_TUNNEL_H_
#include <linux/types.h> #include <linux/types.h>
#include <linux/ip.h>
#define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0) #define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0)
#define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1) #define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1)
......
#ifndef _INET_DIAG_H_ #ifndef _INET_DIAG_H_
#define _INET_DIAG_H_ 1 #define _INET_DIAG_H_ 1
#include <linux/types.h>
/* Just some random number */ /* Just some random number */
#define TCPDIAG_GETSOCK 18 #define TCPDIAG_GETSOCK 18
#define DCCPDIAG_GETSOCK 19 #define DCCPDIAG_GETSOCK 19
......
#ifndef _IP6_TUNNEL_H #ifndef _IP6_TUNNEL_H
#define _IP6_TUNNEL_H #define _IP6_TUNNEL_H
#include <linux/types.h>
#define IPV6_TLV_TNL_ENCAP_LIMIT 4 #define IPV6_TLV_TNL_ENCAP_LIMIT 4
#define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4 #define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4
......
#ifndef __LINUX_NEIGHBOUR_H #ifndef __LINUX_NEIGHBOUR_H
#define __LINUX_NEIGHBOUR_H #define __LINUX_NEIGHBOUR_H
#include <linux/types.h>
#include <linux/netlink.h> #include <linux/netlink.h>
struct ndmsg struct ndmsg
......
#ifndef __LINUX_PKT_CLS_H #ifndef __LINUX_PKT_CLS_H
#define __LINUX_PKT_CLS_H #define __LINUX_PKT_CLS_H
#include <linux/types.h>
#include <linux/pkt_sched.h> #include <linux/pkt_sched.h>
/* I think i could have done better macros ; for now this is stolen from /* I think i could have done better macros ; for now this is stolen from
...@@ -394,6 +395,20 @@ enum ...@@ -394,6 +395,20 @@ enum
#define TCA_BASIC_MAX (__TCA_BASIC_MAX - 1) #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 */ /* Extended Matches */
struct tcf_ematch_tree_hdr struct tcf_ematch_tree_hdr
......
#ifndef __LINUX_PKT_SCHED_H #ifndef __LINUX_PKT_SCHED_H
#define __LINUX_PKT_SCHED_H #define __LINUX_PKT_SCHED_H
#include <linux/types.h>
/* Logical priority bands not depending on specific packet scheduler. /* Logical priority bands not depending on specific packet scheduler.
Every scheduler will map them to real traffic classes, if it has Every scheduler will map them to real traffic classes, if it has
no more precise mechanism to classify packets. no more precise mechanism to classify packets.
......
#ifndef __LINUX_RTNETLINK_H #ifndef __LINUX_RTNETLINK_H
#define __LINUX_RTNETLINK_H #define __LINUX_RTNETLINK_H
#include <linux/types.h>
#include <linux/netlink.h> #include <linux/netlink.h>
#include <linux/if_link.h> #include <linux/if_link.h>
#include <linux/if_addr.h> #include <linux/if_addr.h>
...@@ -107,6 +108,11 @@ enum { ...@@ -107,6 +108,11 @@ enum {
RTM_GETADDRLABEL, RTM_GETADDRLABEL,
#define RTM_GETADDRLABEL RTM_GETADDRLABEL #define RTM_GETADDRLABEL RTM_GETADDRLABEL
RTM_GETDCB = 78,
#define RTM_GETDCB RTM_GETDCB
RTM_SETDCB,
#define RTM_SETDCB RTM_SETDCB
__RTM_MAX, __RTM_MAX,
#define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1) #define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1)
}; };
......
...@@ -105,7 +105,7 @@ struct cmsghdr { ...@@ -105,7 +105,7 @@ struct cmsghdr {
#if defined(__GNUC__) #if defined(__GNUC__)
#define __KINLINE static __inline__ #define __KINLINE static __inline__
#elif defined(__cplusplus) #elif defined(__cplusplus)
#define __KINLINE static inline #define __KINLINE static __inline__
#else #else
#define __KINLINE static #define __KINLINE static
#endif #endif
......
#ifndef __LINUX_TC_GACT_H #ifndef __LINUX_TC_GACT_H
#define __LINUX_TC_GACT_H #define __LINUX_TC_GACT_H
#include <linux/types.h>
#include <linux/pkt_cls.h> #include <linux/pkt_cls.h>
#define TCA_ACT_GACT 5 #define TCA_ACT_GACT 5
......
#ifndef __LINUX_TC_MIR_H #ifndef __LINUX_TC_MIR_H
#define __LINUX_TC_MIR_H #define __LINUX_TC_MIR_H
#include <linux/types.h>
#include <linux/pkt_cls.h> #include <linux/pkt_cls.h>
#define TCA_ACT_MIRRED 8 #define TCA_ACT_MIRRED 8
......
#ifndef __LINUX_TC_PED_H #ifndef __LINUX_TC_PED_H
#define __LINUX_TC_PED_H #define __LINUX_TC_PED_H
#include <linux/types.h>
#include <linux/pkt_cls.h> #include <linux/pkt_cls.h>
#define TCA_ACT_PEDIT 7 #define TCA_ACT_PEDIT 7
......
#ifndef __LINUX_TC_EM_CMP_H #ifndef __LINUX_TC_EM_CMP_H
#define __LINUX_TC_EM_CMP_H #define __LINUX_TC_EM_CMP_H
#include <linux/types.h>
#include <linux/pkt_cls.h> #include <linux/pkt_cls.h>
struct tcf_em_cmp struct tcf_em_cmp
......
#ifndef __LINUX_TC_EM_META_H #ifndef __LINUX_TC_EM_META_H
#define __LINUX_TC_EM_META_H #define __LINUX_TC_EM_META_H
#include <linux/types.h>
#include <linux/pkt_cls.h> #include <linux/pkt_cls.h>
enum enum
......
#ifndef __LINUX_TC_EM_NBYTE_H #ifndef __LINUX_TC_EM_NBYTE_H
#define __LINUX_TC_EM_NBYTE_H #define __LINUX_TC_EM_NBYTE_H
#include <linux/types.h>
#include <linux/pkt_cls.h> #include <linux/pkt_cls.h>
struct tcf_em_nbyte struct tcf_em_nbyte
......
...@@ -108,19 +108,14 @@ typedef __s64 int64_t; ...@@ -108,19 +108,14 @@ typedef __s64 int64_t;
* *
* Linux always considers sectors to be 512 bytes long independently * Linux always considers sectors to be 512 bytes long independently
* of the devices real block size. * of the devices real block size.
*
* blkcnt_t is the type of the inode's block count.
*/ */
#ifdef CONFIG_LBD #ifdef CONFIG_LBD
typedef u64 sector_t; 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; typedef u64 blkcnt_t;
#else #else
typedef unsigned long sector_t;
typedef unsigned long blkcnt_t; typedef unsigned long blkcnt_t;
#endif #endif
...@@ -154,10 +149,9 @@ typedef __u16 __bitwise __le16; ...@@ -154,10 +149,9 @@ typedef __u16 __bitwise __le16;
typedef __u16 __bitwise __be16; typedef __u16 __bitwise __be16;
typedef __u32 __bitwise __le32; typedef __u32 __bitwise __le32;
typedef __u32 __bitwise __be32; typedef __u32 __bitwise __be32;
#if defined(__GNUC__)
typedef __u64 __bitwise __le64; typedef __u64 __bitwise __le64;
typedef __u64 __bitwise __be64; typedef __u64 __bitwise __be64;
#endif
typedef __u16 __bitwise __sum16; typedef __u16 __bitwise __sum16;
typedef __u32 __bitwise __wsum; typedef __u32 __bitwise __wsum;
......
...@@ -199,6 +199,9 @@ enum { ...@@ -199,6 +199,9 @@ enum {
#define XFRM_MSG_NEWSPDINFO XFRM_MSG_NEWSPDINFO #define XFRM_MSG_NEWSPDINFO XFRM_MSG_NEWSPDINFO
XFRM_MSG_GETSPDINFO, XFRM_MSG_GETSPDINFO,
#define XFRM_MSG_GETSPDINFO XFRM_MSG_GETSPDINFO #define XFRM_MSG_GETSPDINFO XFRM_MSG_GETSPDINFO
XFRM_MSG_MAPPING,
#define XFRM_MSG_MAPPING XFRM_MSG_MAPPING
__XFRM_MSG_MAX __XFRM_MSG_MAX
}; };
#define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1) #define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1)
...@@ -438,6 +441,15 @@ struct xfrm_user_migrate { ...@@ -438,6 +441,15 @@ struct xfrm_user_migrate {
__u16 new_family; __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 */ /* backwards compatibility for userspace */
#define XFRMGRP_ACQUIRE 1 #define XFRMGRP_ACQUIRE 1
#define XFRMGRP_EXPIRE 2 #define XFRMGRP_EXPIRE 2
...@@ -462,6 +474,8 @@ enum xfrm_nlgroups { ...@@ -462,6 +474,8 @@ enum xfrm_nlgroups {
#define XFRMNLGRP_REPORT XFRMNLGRP_REPORT #define XFRMNLGRP_REPORT XFRMNLGRP_REPORT
XFRMNLGRP_MIGRATE, XFRMNLGRP_MIGRATE,
#define XFRMNLGRP_MIGRATE XFRMNLGRP_MIGRATE #define XFRMNLGRP_MIGRATE XFRMNLGRP_MIGRATE
XFRMNLGRP_MAPPING,
#define XFRMNLGRP_MAPPING XFRMNLGRP_MAPPING
__XFRMNLGRP_MAX __XFRMNLGRP_MAX
}; };
#define XFRMNLGRP_MAX (__XFRMNLGRP_MAX - 1) #define XFRMNLGRP_MAX (__XFRMNLGRP_MAX - 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment