ax25: add link layer header validation function
authorWillem de Bruijn <willemb@google.com>
Thu, 10 Mar 2016 02:58:33 +0000 (21:58 -0500)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 03:07:01 +0000 (23:07 -0400)
commit58ba5f64ecb7c1909c060793be9e46cc28b417db
tree347a6ce53fc65d87b771f3d13dd82be7507e1c5f
parent1df16498dfd0d5a129bdf2982d9a08df73e8923d
ax25: add link layer header validation function

[ Upstream commit ea47781c26510e5d97f80f9aceafe9065bd5e3aa ]

As variable length protocol, AX25 fails link layer header validation
tests based on a minimum length. header_ops.validate allows protocols
to validate headers that are shorter than hard_header_len. Implement
this callback for AX25.

See also http://comments.gmane.org/gmane.linux.network/401064

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/ax25/ax25_ip.c