Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
0002 /*
0003  * Copyright (c) 2016, Jamal Hadi Salim
0004  *
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License as published by
0007  * the Free Software Foundation; either version 2 of the License, or
0008  * (at your option) any later version.
0009 */
0010 
0011 #ifndef __LINUX_TC_SKBMOD_H
0012 #define __LINUX_TC_SKBMOD_H
0013 
0014 #include <linux/pkt_cls.h>
0015 
0016 #define SKBMOD_F_DMAC   0x1
0017 #define SKBMOD_F_SMAC   0x2
0018 #define SKBMOD_F_ETYPE  0x4
0019 #define SKBMOD_F_SWAPMAC 0x8
0020 #define SKBMOD_F_ECN    0x10
0021 
0022 struct tc_skbmod {
0023     tc_gen;
0024     __u64 flags;
0025 };
0026 
0027 enum {
0028     TCA_SKBMOD_UNSPEC,
0029     TCA_SKBMOD_TM,
0030     TCA_SKBMOD_PARMS,
0031     TCA_SKBMOD_DMAC,
0032     TCA_SKBMOD_SMAC,
0033     TCA_SKBMOD_ETYPE,
0034     TCA_SKBMOD_PAD,
0035     __TCA_SKBMOD_MAX
0036 };
0037 #define TCA_SKBMOD_MAX (__TCA_SKBMOD_MAX - 1)
0038 
0039 #endif