ax25: add link layer header validation function
authorWillem de Bruijn <willemb@google.com>
Thu, 10 Mar 2016 02:58:33 +0000 (21:58 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 30 Apr 2016 22:05:26 +0000 (00:05 +0200)
commit0954b59d9f4b2dcc59f28d1f64c3a21062a64372
treeb4882e85c799d136f5d7a69e97cad9b3b1e46102
parentb5518429e70cd783b8ca52335456172c1a0589f6
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>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ax25/ax25_ip.c