Re: [PATCH iproute2 net 2/8] tc/pedit: Extend pedit to specify offset relative to mac/transport headers

2017-05-01 Thread Stephen Hemminger
On Sun, 23 Apr 2017 15:53:50 +0300 Amir Vadai wrote: > -extern int parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,__u32 > retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey); > -extern int pack_key(struct tc_pedit_sel *sel,struct tc_pedit_key *tkey); > -extern

[PATCH iproute2 net 2/8] tc/pedit: Extend pedit to specify offset relative to mac/transport headers

2017-04-23 Thread Amir Vadai
Utilize the extended pedit netlink to set an offset relative to a specific header type. Old netlink only enabled the user to set approximated offset relative to the IPv4 header. To use this extended functionality need to use the 'ex' keyword after 'pedit' and before any 'munge'. e.g: $ tc filter