]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[NET_SCHED]: policer: restore compatibility with old iproute binaries
authorPatrick McHardy <kaber@trash.net>
Mon, 4 Dec 2006 11:46:48 +0000 (12:46 +0100)
committerAdrian Bunk <bunk@stusta.de>
Mon, 4 Dec 2006 11:46:48 +0000 (12:46 +0100)
commitb00b3fe3f00962fc9faa7d34c28f5a20074c728b
treefac4efb9b8928c150f5048d7ed18355d0459a668
parente6e129777f0fb6619e6a845cfd7a87b7fcd736a0
[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: Adrian Bunk <bunk@stusta.de>
net/sched/act_police.c