Revert "ax25: add link layer header validation function"

This reverts commit 0954b59d9f, which was
commit ea47781c26 upstream.  It is
pointless unless af_packet calls the new function.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Ben Hutchings
2016-05-01 17:59:44 +02:00
parent fad79858d2
commit b5f9a2bbb2

View File

@ -232,24 +232,9 @@ int ax25_rebuild_header(struct sk_buff *skb)
#endif
static bool ax25_validate_header(const char *header, unsigned int len)
{
ax25_digi digi;
if (!len)
return false;
if (header[0])
return true;
return ax25_addr_parse(header + 1, len - 1, NULL, NULL, &digi, NULL,
NULL);
}
const struct header_ops ax25_header_ops = {
.create = ax25_hard_header,
.rebuild = ax25_rebuild_header,
.validate = ax25_validate_header,
};
EXPORT_SYMBOL(ax25_hard_header);