Dr Andrew Scott G7VAV

My photo
 
July 2025
Mo Tu We Th Fr Sa Su
30 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31 1 2 3
4 5 6 7 8 9 10


tc_pedit.h
01: #ifndef __LINUX_TC_PED_H
02: #define __LINUX_TC_PED_H
03: 
04: #include <linux/types.h>
05: #include <linux/pkt_cls.h>
06: 
07: #define TCA_ACT_PEDIT 7
08: 
09: enum {
10:         TCA_PEDIT_UNSPEC,
11:         TCA_PEDIT_TM,
12:         TCA_PEDIT_PARMS,
13:         __TCA_PEDIT_MAX
14: };
15: #define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)
16:                                                                                 
17: struct tc_pedit_key {
18:         __u32           mask;  /* AND */
19:         __u32           val;   /*XOR */
20:         __u32           off;  /*offset */
21:         __u32           at;
22:         __u32           offmask;
23:         __u32           shift;
24: };
25:                                                                                 
26: struct tc_pedit_sel {
27:         tc_gen;
28:         unsigned char           nkeys;
29:         unsigned char           flags;
30:         struct tc_pedit_key     keys[0];
31: };
32: #define tc_pedit tc_pedit_sel
33: 
34: #endif
35: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/