openbox lab initialized
This commit is contained in:
33
openflow/usr/include/linux/tc_act/tc_bpf.h
Normal file
33
openflow/usr/include/linux/tc_act/tc_bpf.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_TC_BPF_H
|
||||
#define __LINUX_TC_BPF_H
|
||||
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
#define TCA_ACT_BPF 13
|
||||
|
||||
struct tc_act_bpf {
|
||||
tc_gen;
|
||||
};
|
||||
|
||||
enum {
|
||||
TCA_ACT_BPF_UNSPEC,
|
||||
TCA_ACT_BPF_TM,
|
||||
TCA_ACT_BPF_PARMS,
|
||||
TCA_ACT_BPF_OPS_LEN,
|
||||
TCA_ACT_BPF_OPS,
|
||||
TCA_ACT_BPF_FD,
|
||||
TCA_ACT_BPF_NAME,
|
||||
__TCA_ACT_BPF_MAX,
|
||||
};
|
||||
#define TCA_ACT_BPF_MAX (__TCA_ACT_BPF_MAX - 1)
|
||||
|
||||
#endif
|
||||
22
openflow/usr/include/linux/tc_act/tc_connmark.h
Normal file
22
openflow/usr/include/linux/tc_act/tc_connmark.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef __UAPI_TC_CONNMARK_H
|
||||
#define __UAPI_TC_CONNMARK_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
#define TCA_ACT_CONNMARK 14
|
||||
|
||||
struct tc_connmark {
|
||||
tc_gen;
|
||||
__u16 zone;
|
||||
};
|
||||
|
||||
enum {
|
||||
TCA_CONNMARK_UNSPEC,
|
||||
TCA_CONNMARK_PARMS,
|
||||
TCA_CONNMARK_TM,
|
||||
__TCA_CONNMARK_MAX
|
||||
};
|
||||
#define TCA_CONNMARK_MAX (__TCA_CONNMARK_MAX - 1)
|
||||
|
||||
#endif
|
||||
32
openflow/usr/include/linux/tc_act/tc_csum.h
Normal file
32
openflow/usr/include/linux/tc_act/tc_csum.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef __LINUX_TC_CSUM_H
|
||||
#define __LINUX_TC_CSUM_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
#define TCA_ACT_CSUM 16
|
||||
|
||||
enum {
|
||||
TCA_CSUM_UNSPEC,
|
||||
TCA_CSUM_PARMS,
|
||||
TCA_CSUM_TM,
|
||||
__TCA_CSUM_MAX
|
||||
};
|
||||
#define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1)
|
||||
|
||||
enum {
|
||||
TCA_CSUM_UPDATE_FLAG_IPV4HDR = 1,
|
||||
TCA_CSUM_UPDATE_FLAG_ICMP = 2,
|
||||
TCA_CSUM_UPDATE_FLAG_IGMP = 4,
|
||||
TCA_CSUM_UPDATE_FLAG_TCP = 8,
|
||||
TCA_CSUM_UPDATE_FLAG_UDP = 16,
|
||||
TCA_CSUM_UPDATE_FLAG_UDPLITE = 32
|
||||
};
|
||||
|
||||
struct tc_csum {
|
||||
tc_gen;
|
||||
|
||||
__u32 update_flags;
|
||||
};
|
||||
|
||||
#endif /* __LINUX_TC_CSUM_H */
|
||||
19
openflow/usr/include/linux/tc_act/tc_defact.h
Normal file
19
openflow/usr/include/linux/tc_act/tc_defact.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef __LINUX_TC_DEF_H
|
||||
#define __LINUX_TC_DEF_H
|
||||
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
struct tc_defact {
|
||||
tc_gen;
|
||||
};
|
||||
|
||||
enum {
|
||||
TCA_DEF_UNSPEC,
|
||||
TCA_DEF_TM,
|
||||
TCA_DEF_PARMS,
|
||||
TCA_DEF_DATA,
|
||||
__TCA_DEF_MAX
|
||||
};
|
||||
#define TCA_DEF_MAX (__TCA_DEF_MAX - 1)
|
||||
|
||||
#endif
|
||||
32
openflow/usr/include/linux/tc_act/tc_gact.h
Normal file
32
openflow/usr/include/linux/tc_act/tc_gact.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef __LINUX_TC_GACT_H
|
||||
#define __LINUX_TC_GACT_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
#define TCA_ACT_GACT 5
|
||||
struct tc_gact {
|
||||
tc_gen;
|
||||
|
||||
};
|
||||
|
||||
struct tc_gact_p {
|
||||
#define PGACT_NONE 0
|
||||
#define PGACT_NETRAND 1
|
||||
#define PGACT_DETERM 2
|
||||
#define MAX_RAND (PGACT_DETERM + 1 )
|
||||
__u16 ptype;
|
||||
__u16 pval;
|
||||
int paction;
|
||||
};
|
||||
|
||||
enum {
|
||||
TCA_GACT_UNSPEC,
|
||||
TCA_GACT_TM,
|
||||
TCA_GACT_PARMS,
|
||||
TCA_GACT_PROB,
|
||||
__TCA_GACT_MAX
|
||||
};
|
||||
#define TCA_GACT_MAX (__TCA_GACT_MAX - 1)
|
||||
|
||||
#endif
|
||||
21
openflow/usr/include/linux/tc_act/tc_ipt.h
Normal file
21
openflow/usr/include/linux/tc_act/tc_ipt.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef __LINUX_TC_IPT_H
|
||||
#define __LINUX_TC_IPT_H
|
||||
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
#define TCA_ACT_IPT 6
|
||||
#define TCA_ACT_XT 10
|
||||
|
||||
enum {
|
||||
TCA_IPT_UNSPEC,
|
||||
TCA_IPT_TABLE,
|
||||
TCA_IPT_HOOK,
|
||||
TCA_IPT_INDEX,
|
||||
TCA_IPT_CNT,
|
||||
TCA_IPT_TM,
|
||||
TCA_IPT_TARG,
|
||||
__TCA_IPT_MAX
|
||||
};
|
||||
#define TCA_IPT_MAX (__TCA_IPT_MAX - 1)
|
||||
|
||||
#endif
|
||||
27
openflow/usr/include/linux/tc_act/tc_mirred.h
Normal file
27
openflow/usr/include/linux/tc_act/tc_mirred.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef __LINUX_TC_MIR_H
|
||||
#define __LINUX_TC_MIR_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
#define TCA_ACT_MIRRED 8
|
||||
#define TCA_EGRESS_REDIR 1 /* packet redirect to EGRESS*/
|
||||
#define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */
|
||||
#define TCA_INGRESS_REDIR 3 /* packet redirect to INGRESS*/
|
||||
#define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */
|
||||
|
||||
struct tc_mirred {
|
||||
tc_gen;
|
||||
int eaction; /* one of IN/EGRESS_MIRROR/REDIR */
|
||||
__u32 ifindex; /* ifindex of egress port */
|
||||
};
|
||||
|
||||
enum {
|
||||
TCA_MIRRED_UNSPEC,
|
||||
TCA_MIRRED_TM,
|
||||
TCA_MIRRED_PARMS,
|
||||
__TCA_MIRRED_MAX
|
||||
};
|
||||
#define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1)
|
||||
|
||||
#endif
|
||||
27
openflow/usr/include/linux/tc_act/tc_nat.h
Normal file
27
openflow/usr/include/linux/tc_act/tc_nat.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef __LINUX_TC_NAT_H
|
||||
#define __LINUX_TC_NAT_H
|
||||
|
||||
#include <linux/pkt_cls.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#define TCA_ACT_NAT 9
|
||||
|
||||
enum {
|
||||
TCA_NAT_UNSPEC,
|
||||
TCA_NAT_PARMS,
|
||||
TCA_NAT_TM,
|
||||
__TCA_NAT_MAX
|
||||
};
|
||||
#define TCA_NAT_MAX (__TCA_NAT_MAX - 1)
|
||||
|
||||
#define TCA_NAT_FLAG_EGRESS 1
|
||||
|
||||
struct tc_nat {
|
||||
tc_gen;
|
||||
__be32 old_addr;
|
||||
__be32 new_addr;
|
||||
__be32 mask;
|
||||
__u32 flags;
|
||||
};
|
||||
|
||||
#endif
|
||||
34
openflow/usr/include/linux/tc_act/tc_pedit.h
Normal file
34
openflow/usr/include/linux/tc_act/tc_pedit.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef __LINUX_TC_PED_H
|
||||
#define __LINUX_TC_PED_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
#define TCA_ACT_PEDIT 7
|
||||
|
||||
enum {
|
||||
TCA_PEDIT_UNSPEC,
|
||||
TCA_PEDIT_TM,
|
||||
TCA_PEDIT_PARMS,
|
||||
__TCA_PEDIT_MAX
|
||||
};
|
||||
#define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)
|
||||
|
||||
struct tc_pedit_key {
|
||||
__u32 mask; /* AND */
|
||||
__u32 val; /*XOR */
|
||||
__u32 off; /*offset */
|
||||
__u32 at;
|
||||
__u32 offmask;
|
||||
__u32 shift;
|
||||
};
|
||||
|
||||
struct tc_pedit_sel {
|
||||
tc_gen;
|
||||
unsigned char nkeys;
|
||||
unsigned char flags;
|
||||
struct tc_pedit_key keys[0];
|
||||
};
|
||||
#define tc_pedit tc_pedit_sel
|
||||
|
||||
#endif
|
||||
46
openflow/usr/include/linux/tc_act/tc_skbedit.h
Normal file
46
openflow/usr/include/linux/tc_act/tc_skbedit.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright (c) 2008, Intel Corporation.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||
* Place - Suite 330, Boston, MA 02111-1307 USA.
|
||||
*
|
||||
* Author: Alexander Duyck <alexander.h.duyck@intel.com>
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_TC_SKBEDIT_H
|
||||
#define __LINUX_TC_SKBEDIT_H
|
||||
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
#define TCA_ACT_SKBEDIT 11
|
||||
|
||||
#define SKBEDIT_F_PRIORITY 0x1
|
||||
#define SKBEDIT_F_QUEUE_MAPPING 0x2
|
||||
#define SKBEDIT_F_MARK 0x4
|
||||
|
||||
struct tc_skbedit {
|
||||
tc_gen;
|
||||
};
|
||||
|
||||
enum {
|
||||
TCA_SKBEDIT_UNSPEC,
|
||||
TCA_SKBEDIT_TM,
|
||||
TCA_SKBEDIT_PARMS,
|
||||
TCA_SKBEDIT_PRIORITY,
|
||||
TCA_SKBEDIT_QUEUE_MAPPING,
|
||||
TCA_SKBEDIT_MARK,
|
||||
__TCA_SKBEDIT_MAX
|
||||
};
|
||||
#define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1)
|
||||
|
||||
#endif
|
||||
35
openflow/usr/include/linux/tc_act/tc_vlan.h
Normal file
35
openflow/usr/include/linux/tc_act/tc_vlan.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_TC_VLAN_H
|
||||
#define __LINUX_TC_VLAN_H
|
||||
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
#define TCA_ACT_VLAN 12
|
||||
|
||||
#define TCA_VLAN_ACT_POP 1
|
||||
#define TCA_VLAN_ACT_PUSH 2
|
||||
|
||||
struct tc_vlan {
|
||||
tc_gen;
|
||||
int v_action;
|
||||
};
|
||||
|
||||
enum {
|
||||
TCA_VLAN_UNSPEC,
|
||||
TCA_VLAN_TM,
|
||||
TCA_VLAN_PARMS,
|
||||
TCA_VLAN_PUSH_VLAN_ID,
|
||||
TCA_VLAN_PUSH_VLAN_PROTOCOL,
|
||||
__TCA_VLAN_MAX,
|
||||
};
|
||||
#define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user