]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: m_connmark: fix action error messages
authorKevin 'ldir' Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Fri, 15 Mar 2019 10:50:45 +0000 (10:50 +0000)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 19 Mar 2019 16:49:07 +0000 (09:49 -0700)
commitef1e02e6ac6b024d7b9d4657a0aaa1e6f1ba3ed7
tree0b6048e1def515f6224ff9b38c09c9a2189e3f65
parentf36f8fe535c97f521cc76c2ceae06c2b6443ad98
tc: m_connmark: fix action error messages

action m_connmark returns error messages identifying itself as the
'simple' action instead of 'connmark' action. e.g.

tc filter add dev eth0 protocol all u32 match u32 0 0 flowid 1:1 \
action connmark index wrong
simple: Illegal "index"
bad action parsing
parse_action: bad value (3:connmark)!
Illegal "action"

In what is most likely a copy/paste error from the simple action example
code, fix connmark error messages to identify themselves as coming from
connmark.

tc filter add dev eth0 protocol all u32 match u32 0 0 flowid 1:1 \
action connmark index wrong
connmark: Illegal "index"
bad action parsing
parse_action: bad value (3:connmark)!
Illegal "action"

While we're here also fixup the 'Illegal "Zone"' error code to say
'Illegal "zone"' instead of 'Illegal "index"'

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/m_connmark.c