]> 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>
Mon, 11 Dec 2006 19:32:37 +0000 (11:32 -0800)
commit98178d01fce23126ffd2f71ca5c289db02ec460e
tree4a391e0a524c05d443edc427b409a3f3d574ad10
parentbf59e3085f0d107969c01c3c00c88b0db3a3ca82
[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