diff options
author | Werner Almesberger <werner@almesberger.net> | 2013-08-02 15:51:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-03 00:15:50 +0200 |
commit | d1c53c8e870cdedb6fc9550f41c558bab45b5219 (patch) | |
tree | b740b4b81c96ec056aec738cb59ed5c003d329a2 /net/ipv4/fib_rules.c | |
parent | icmpv6_filter: fix "_hdr" incorrectly being a pointer (diff) | |
download | linux-d1c53c8e870cdedb6fc9550f41c558bab45b5219.tar.xz linux-d1c53c8e870cdedb6fc9550f41c558bab45b5219.zip |
icmpv6_filter: allow ICMPv6 messages with bodies < 4 bytes
By using sizeof(_hdr), net/ipv6/raw.c:icmpv6_filter implicitly assumes
that any valid ICMPv6 message is at least eight bytes long, i.e., that
the message body is at least four bytes.
The DIS message of RPL (RFC 6550 section 6.2, from the 6LoWPAN world),
has a minimum length of only six bytes, and is thus blocked by
icmpv6_filter.
RFC 4443 seems to allow even a zero-sized body, making the minimum
allowable message size four bytes.
Signed-off-by: Werner Almesberger <werner@almesberger.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_rules.c')
0 files changed, 0 insertions, 0 deletions