On Thu, 22 Sep 2016 09:05:04 -0700 Stephen Hemminger
wrote:
> On Thu, 22 Sep 2016 12:31:10 +0300
> Shmulik Ladkani wrote:
>
> > +
> > +static const char *action_name(int action)
> > +{
> > + static const char * const names[] = {
> > + [TCA_VLAN_ACT_POP] = "pop",
> > + [TCA
On Thu, 22 Sep 2016 12:31:10 +0300
Shmulik Ladkani wrote:
> +
> +static const char *action_name(int action)
> +{
> + static const char * const names[] = {
> + [TCA_VLAN_ACT_POP] = "pop",
> + [TCA_VLAN_ACT_PUSH] = "push",
> + [TCA_VLAN_ACT_MODIFY] = "modify"
The 'vlan modify' action allows to replace an existing 802.1q tag
according to user provided settings.
It accepts same arguments as the 'vlan push' action.
For example, this replaces vid 6 with vid 5:
# tc filter add dev veth0 parent : pref 1 protocol 802.1q \
basic match 'meta(vlan ma