On 16-08-28 08:13 AM, Jamal Hadi Salim wrote:
+#if 0
+ if (lflags & SKBMOD_F_SWAPMAC)
+ if ((lflags & SKBMOD_F_DMAC) || (lflags & SKBMOD_F_SMAC))
+ return -EINVAL;
+#endif
Sorry - left over from earlier. Will send v3 shortly.
cheers,
jamal
From: Jamal Hadi Salim
This action is intended to be an upgrade from a usability perspective
from pedit (as well as operational debugability).
Compare this:
sudo tc filter add dev $ETH parent 1: protocol ip prio 10 \
u32 match ip protocol 1 0xff flowid 1:2 \
action pedit munge offset -14 u8 set