]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:06:13 +0000 (00:06 +0200)
commit2b432a04a74a6bd338a877bac79f4f5e90d1a57c
treedd375ed61772f5a2af516762706335f27ed4ddd5
parenta534cb3d4db0c16e95236225e70fd7c89b95a4f5
ax25: add link layer header validation function

commit ea47781c26510e5d97f80f9aceafe9065bd5e3aa upstream.

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.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ax25/ax25_ip.c