diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-03-24 19:46:02 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-03-26 01:48:00 (GMT) |
commit | e1701c68c1d1aeb3213d7016593ea9a1d4309417 (patch) | |
tree | 96dc2e47b36589636b15602dcdcfd2ea426260b7 /include/asm-alpha | |
parent | 5f85813c33ddbf6d11ccfdbcc01f176e24a76bd2 (diff) | |
download | linux-fsl-qoriq-e1701c68c1d1aeb3213d7016593ea9a1d4309417.tar.xz |
[NET]: Fix fib_rules compatibility breakage
Based upon a patch from Patrick McHardy.
The fib_rules netlink attribute policy introduced in 2.6.19 broke
userspace compatibilty. When specifying a rule with "from all"
or "to all", iproute adds a zero byte long netlink attribute,
but the policy requires all addresses to have a size equal to
sizeof(struct in_addr)/sizeof(struct in6_addr), resulting in a
validation error.
Check attribute length of FRA_SRC/FRA_DST in the generic framework
by letting the family specific rules implementation provide the
length of an address. Report an error if address length is non
zero but no address attribute is provided. Fix actual bug by
checking address length for non-zero instead of relying on
availability of attribute.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-alpha')
0 files changed, 0 insertions, 0 deletions