cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

tc_skbmod.h (841B)


      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 SKBMOD_F_DMAC	0x1
     17#define SKBMOD_F_SMAC	0x2
     18#define SKBMOD_F_ETYPE	0x4
     19#define SKBMOD_F_SWAPMAC 0x8
     20#define SKBMOD_F_ECN	0x10
     21
     22struct tc_skbmod {
     23	tc_gen;
     24	__u64 flags;
     25};
     26
     27enum {
     28	TCA_SKBMOD_UNSPEC,
     29	TCA_SKBMOD_TM,
     30	TCA_SKBMOD_PARMS,
     31	TCA_SKBMOD_DMAC,
     32	TCA_SKBMOD_SMAC,
     33	TCA_SKBMOD_ETYPE,
     34	TCA_SKBMOD_PAD,
     35	__TCA_SKBMOD_MAX
     36};
     37#define TCA_SKBMOD_MAX (__TCA_SKBMOD_MAX - 1)
     38
     39#endif