Update to 2.6.27 API
The one issue was the old multiqueue API, so that is handled by tc_util.h
This commit is contained in:
parent
f8fa979bd9
commit
5a67f8f9d3
|
|
@ -16,6 +16,7 @@
|
||||||
* documentation. Do not change them.
|
* documentation. Do not change them.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <linux/atmapi.h>
|
#include <linux/atmapi.h>
|
||||||
#include <linux/atmsap.h>
|
#include <linux/atmsap.h>
|
||||||
#include <linux/atmioc.h>
|
#include <linux/atmioc.h>
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
#include <linux/types.h> /* for "__kernel_caddr_t" et al */
|
#include <linux/types.h> /* for "__kernel_caddr_t" et al */
|
||||||
#include <linux/socket.h> /* for "struct sockaddr" et al */
|
#include <linux/socket.h> /* for "struct sockaddr" et al */
|
||||||
|
/* for "__user" et al */
|
||||||
|
|
||||||
#define IFNAMSIZ 16
|
#define IFNAMSIZ 16
|
||||||
#include <linux/hdlc/ioctl.h>
|
#include <linux/hdlc/ioctl.h>
|
||||||
|
|
@ -135,15 +136,15 @@ struct if_settings
|
||||||
unsigned int size; /* Size of the data allocated by the caller */
|
unsigned int size; /* Size of the data allocated by the caller */
|
||||||
union {
|
union {
|
||||||
/* {atm/eth/dsl}_settings anyone ? */
|
/* {atm/eth/dsl}_settings anyone ? */
|
||||||
raw_hdlc_proto *raw_hdlc;
|
raw_hdlc_proto *raw_hdlc;
|
||||||
cisco_proto *cisco;
|
cisco_proto *cisco;
|
||||||
fr_proto *fr;
|
fr_proto *fr;
|
||||||
fr_proto_pvc *fr_pvc;
|
fr_proto_pvc *fr_pvc;
|
||||||
fr_proto_pvc_info *fr_pvc_info;
|
fr_proto_pvc_info *fr_pvc_info;
|
||||||
|
|
||||||
/* interface settings */
|
/* interface settings */
|
||||||
sync_serial_settings *sync;
|
sync_serial_settings *sync;
|
||||||
te1_settings *te1;
|
te1_settings *te1;
|
||||||
} ifs_ifsu;
|
} ifs_ifsu;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ enum vlan_ioctl_cmds {
|
||||||
|
|
||||||
enum vlan_flags {
|
enum vlan_flags {
|
||||||
VLAN_FLAG_REORDER_HDR = 0x1,
|
VLAN_FLAG_REORDER_HDR = 0x1,
|
||||||
|
VLAN_FLAG_GVRP = 0x2,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum vlan_name_types {
|
enum vlan_name_types {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
/*
|
|
||||||
* $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _IP6_TUNNEL_H
|
#ifndef _IP6_TUNNEL_H
|
||||||
#define _IP6_TUNNEL_H
|
#define _IP6_TUNNEL_H
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
|
|
||||||
/* Responses from hook functions. */
|
/* Responses from hook functions. */
|
||||||
#define NF_DROP 0
|
#define NF_DROP 0
|
||||||
#define NF_ACCEPT 1
|
#define NF_ACCEPT 1
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@ enum nf_ip_hook_priorities {
|
||||||
NF_IP_PRI_MANGLE = -150,
|
NF_IP_PRI_MANGLE = -150,
|
||||||
NF_IP_PRI_NAT_DST = -100,
|
NF_IP_PRI_NAT_DST = -100,
|
||||||
NF_IP_PRI_FILTER = 0,
|
NF_IP_PRI_FILTER = 0,
|
||||||
|
NF_IP_PRI_SECURITY = 50,
|
||||||
NF_IP_PRI_NAT_SRC = 100,
|
NF_IP_PRI_NAT_SRC = 100,
|
||||||
NF_IP_PRI_SELINUX_LAST = 225,
|
NF_IP_PRI_SELINUX_LAST = 225,
|
||||||
NF_IP_PRI_CONNTRACK_CONFIRM = INT_MAX,
|
NF_IP_PRI_CONNTRACK_CONFIRM = INT_MAX,
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
#define _IPTABLES_H
|
#define _IPTABLES_H
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
#include <linux/netfilter_ipv4.h>
|
#include <linux/netfilter_ipv4.h>
|
||||||
|
|
||||||
#include <linux/netfilter/x_tables.h>
|
#include <linux/netfilter/x_tables.h>
|
||||||
|
|
|
||||||
|
|
@ -374,6 +374,7 @@ enum
|
||||||
TCA_FLOW_ACT,
|
TCA_FLOW_ACT,
|
||||||
TCA_FLOW_POLICE,
|
TCA_FLOW_POLICE,
|
||||||
TCA_FLOW_EMATCHES,
|
TCA_FLOW_EMATCHES,
|
||||||
|
TCA_FLOW_PERTURB,
|
||||||
__TCA_FLOW_MAX
|
__TCA_FLOW_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,26 @@ struct tc_ratespec
|
||||||
|
|
||||||
#define TC_RTAB_SIZE 1024
|
#define TC_RTAB_SIZE 1024
|
||||||
|
|
||||||
|
struct tc_sizespec {
|
||||||
|
unsigned char cell_log;
|
||||||
|
unsigned char size_log;
|
||||||
|
short cell_align;
|
||||||
|
int overhead;
|
||||||
|
unsigned int linklayer;
|
||||||
|
unsigned int mpu;
|
||||||
|
unsigned int mtu;
|
||||||
|
unsigned int tsize;
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
TCA_STAB_UNSPEC,
|
||||||
|
TCA_STAB_BASE,
|
||||||
|
TCA_STAB_DATA,
|
||||||
|
__TCA_STAB_MAX
|
||||||
|
};
|
||||||
|
|
||||||
|
#define TCA_STAB_MAX (__TCA_STAB_MAX - 1)
|
||||||
|
|
||||||
/* FIFO section */
|
/* FIFO section */
|
||||||
|
|
||||||
struct tc_fifo_qopt
|
struct tc_fifo_qopt
|
||||||
|
|
@ -103,15 +123,6 @@ struct tc_prio_qopt
|
||||||
__u8 priomap[TC_PRIO_MAX+1]; /* Map: logical priority -> PRIO band */
|
__u8 priomap[TC_PRIO_MAX+1]; /* Map: logical priority -> PRIO band */
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
TCA_PRIO_UNSPEC,
|
|
||||||
TCA_PRIO_MQ,
|
|
||||||
__TCA_PRIO_MAX
|
|
||||||
};
|
|
||||||
|
|
||||||
#define TCA_PRIO_MAX (__TCA_PRIO_MAX - 1)
|
|
||||||
|
|
||||||
/* TBF section */
|
/* TBF section */
|
||||||
|
|
||||||
struct tc_tbf_qopt
|
struct tc_tbf_qopt
|
||||||
|
|
|
||||||
|
|
@ -482,6 +482,7 @@ enum
|
||||||
TCA_RATE,
|
TCA_RATE,
|
||||||
TCA_FCNT,
|
TCA_FCNT,
|
||||||
TCA_STATS2,
|
TCA_STATS2,
|
||||||
|
TCA_STAB,
|
||||||
__TCA_MAX
|
__TCA_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ struct __kernel_sockaddr_storage {
|
||||||
#include <linux/sockios.h> /* the SIOCxxx I/O controls */
|
#include <linux/sockios.h> /* the SIOCxxx I/O controls */
|
||||||
#include <linux/uio.h> /* iovec support */
|
#include <linux/uio.h> /* iovec support */
|
||||||
#include <linux/types.h> /* pid_t */
|
#include <linux/types.h> /* pid_t */
|
||||||
|
/* */
|
||||||
|
|
||||||
#ifdef CONFIG_PROC_FS
|
#ifdef CONFIG_PROC_FS
|
||||||
struct seq_file;
|
struct seq_file;
|
||||||
|
|
@ -186,7 +187,8 @@ struct ucred {
|
||||||
#define AF_BLUETOOTH 31 /* Bluetooth sockets */
|
#define AF_BLUETOOTH 31 /* Bluetooth sockets */
|
||||||
#define AF_IUCV 32 /* IUCV sockets */
|
#define AF_IUCV 32 /* IUCV sockets */
|
||||||
#define AF_RXRPC 33 /* RxRPC sockets */
|
#define AF_RXRPC 33 /* RxRPC sockets */
|
||||||
#define AF_MAX 34 /* For now.. */
|
#define AF_ISDN 34 /* mISDN sockets */
|
||||||
|
#define AF_MAX 35 /* For now.. */
|
||||||
|
|
||||||
/* Protocol families, same as address families. */
|
/* Protocol families, same as address families. */
|
||||||
#define PF_UNSPEC AF_UNSPEC
|
#define PF_UNSPEC AF_UNSPEC
|
||||||
|
|
@ -222,6 +224,7 @@ struct ucred {
|
||||||
#define PF_BLUETOOTH AF_BLUETOOTH
|
#define PF_BLUETOOTH AF_BLUETOOTH
|
||||||
#define PF_IUCV AF_IUCV
|
#define PF_IUCV AF_IUCV
|
||||||
#define PF_RXRPC AF_RXRPC
|
#define PF_RXRPC AF_RXRPC
|
||||||
|
#define PF_ISDN AF_ISDN
|
||||||
#define PF_MAX AF_MAX
|
#define PF_MAX AF_MAX
|
||||||
|
|
||||||
/* Maximum queue length specifiable by listen. */
|
/* Maximum queue length specifiable by listen. */
|
||||||
|
|
|
||||||
12
tc/tc_util.h
12
tc/tc_util.h
|
|
@ -7,6 +7,18 @@
|
||||||
#include <linux/gen_stats.h>
|
#include <linux/gen_stats.h>
|
||||||
#include "tc_core.h"
|
#include "tc_core.h"
|
||||||
|
|
||||||
|
/* This is the deprecated multiqueue interface */
|
||||||
|
#ifndef TCA_PRIO_MAX
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
TCA_PRIO_UNSPEC,
|
||||||
|
TCA_PRIO_MQ,
|
||||||
|
__TCA_PRIO_MAX
|
||||||
|
};
|
||||||
|
|
||||||
|
#define TCA_PRIO_MAX (__TCA_PRIO_MAX - 1)
|
||||||
|
#endif
|
||||||
|
|
||||||
struct qdisc_util
|
struct qdisc_util
|
||||||
{
|
{
|
||||||
struct qdisc_util *next;
|
struct qdisc_util *next;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue