Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.4-rc7 38 lines 815 B view raw
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 21struct tc_skbmod { 22 tc_gen; 23 __u64 flags; 24}; 25 26enum { 27 TCA_SKBMOD_UNSPEC, 28 TCA_SKBMOD_TM, 29 TCA_SKBMOD_PARMS, 30 TCA_SKBMOD_DMAC, 31 TCA_SKBMOD_SMAC, 32 TCA_SKBMOD_ETYPE, 33 TCA_SKBMOD_PAD, 34 __TCA_SKBMOD_MAX 35}; 36#define TCA_SKBMOD_MAX (__TCA_SKBMOD_MAX - 1) 37 38#endif