1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 /* 3 * Copyright (c) 2016, Jamal Hadi Salim 4 */ 5 6 #ifndef __LINUX_TC_SKBMOD_H 7 #define __LINUX_TC_SKBMOD_H 8 9 #include <linux/pkt_cls.h> 10 11 #define SKBMOD_F_DMAC 0x1 12 #define SKBMOD_F_SMAC 0x2 13 #define SKBMOD_F_ETYPE 0x4 14 #define SKBMOD_F_SWAPMAC 0x8 15 #define SKBMOD_F_ECN 0x10 16 17 struct tc_skbmod { 18 tc_gen; 19 __u64 flags; 20 }; 21 22 enum { 23 TCA_SKBMOD_UNSPEC, 24 TCA_SKBMOD_TM, 25 TCA_SKBMOD_PARMS, 26 TCA_SKBMOD_DMAC, 27 TCA_SKBMOD_SMAC, 28 TCA_SKBMOD_ETYPE, 29 TCA_SKBMOD_PAD, 30 __TCA_SKBMOD_MAX 31 }; 32 #define TCA_SKBMOD_MAX (__TCA_SKBMOD_MAX - 1) 33 34 #endif 35