]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] NET_SCHED: policer: restore compatibility with old iproute binaries
authorPatrick McHardy <kaber@trash.net>
Fri, 1 Dec 2006 04:06:33 +0000 (20:06 -0800)
committerChris Wright <chrisw@sous-sol.org>
Sun, 17 Dec 2006 00:20:46 +0000 (16:20 -0800)
commit8a4ab56748c87f71e6090e741150bd3f7b8995e1
tree1c4400b53d8dff659b17659494307e6c996e8c6f
parent6ed412d5056d4246a7fc7ecf8408007fe60d2567
[PATCH] NET_SCHED: policer: restore compatibility with old iproute binaries

The tc actions increased the size of struct tc_police, which broke
compatibility with old iproute binaries since both the act_police
and the old NET_CLS_POLICE code check for an exact size match.

Since the new members are not even used, the simple fix is to also
accept the size of the old structure. Dumping is not affected since
old userspace will receive a bigger structure, which is handled fine.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Acked-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/sched/act_police.c