]>
git.proxmox.com Git - mirror_iproute2.git/blob - tc/m_pedit.h
2 * m_pedit.h generic packet editor actions module
4 * This program is free software; you can distribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
9 * Authors: J Hadi Salim (hadi@cyberus.ca)
14 #define _ACT_PEDIT_H_ 1
20 #include <sys/socket.h>
21 #include <netinet/in.h>
22 #include <arpa/inet.h>
26 #include <linux/tc_act/tc_pedit.h>
36 #define RU32 0xFFFFFFFF
40 #define PEDITKINDSIZ 16
45 __u32 off
; /*offset */
50 enum pedit_header_type htype
;
54 struct m_pedit_key_ex
{
55 enum pedit_header_type htype
;
60 struct tc_pedit_sel sel
;
61 struct tc_pedit_key keys
[MAX_OFFS
];
62 struct m_pedit_key_ex keys_ex
[MAX_OFFS
];
67 struct m_pedit_util
*next
;
68 char id
[PEDITKINDSIZ
];
69 int (*parse_peopt
)(int *argc_p
, char ***argv_p
,
70 struct m_pedit_sel
*sel
,
71 struct m_pedit_key
*tkey
);
74 int parse_cmd(int *argc_p
, char ***argv_p
, __u32 len
, int type
,
76 struct m_pedit_sel
*sel
, struct m_pedit_key
*tkey
);