cpp-d1064d
[cross.git] / i686-linux-gnu-4.7 / usr / include / linux / tc_act / tc_skbmod.h
1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2 /*
3  * Copyright (c) 2016, Jamal Hadi Salim
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9 */
10
11 #ifndef __LINUX_TC_SKBMOD_H
12 #define __LINUX_TC_SKBMOD_H
13
14 #include <linux/pkt_cls.h>
15
16 #define TCA_ACT_SKBMOD 15
17
18 #define SKBMOD_F_DMAC   0x1
19 #define SKBMOD_F_SMAC   0x2
20 #define SKBMOD_F_ETYPE  0x4
21 #define SKBMOD_F_SWAPMAC 0x8
22
23 struct tc_skbmod {
24         tc_gen;
25         __u64 flags;
26 };
27
28 enum {
29         TCA_SKBMOD_UNSPEC,
30         TCA_SKBMOD_TM,
31         TCA_SKBMOD_PARMS,
32         TCA_SKBMOD_DMAC,
33         TCA_SKBMOD_SMAC,
34         TCA_SKBMOD_ETYPE,
35         TCA_SKBMOD_PAD,
36         __TCA_SKBMOD_MAX
37 };
38 #define TCA_SKBMOD_MAX (__TCA_SKBMOD_MAX - 1)
39
40 #endif