]> git.baikalelectronics.ru Git - kernel.git/commit
[NET_SCHED]: policer: restore compatibility with old iproute binaries
authorPatrick McHardy <kaber@trash.net>
Fri, 1 Dec 2006 03:54:05 +0000 (19:54 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:32:07 +0000 (21:32 -0800)
commit0f1c7b35a9de2a9dcc180502a0277eff13d302d3
tree0dd54ad172b0bfb2e905168913a199cab69e9ab1
parent01e56ec02925db802f932483b7efc3e92b1173d2
[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>
net/sched/act_police.c