Commit 8547d08f authored by Ben Hutchings's avatar Ben Hutchings

Revert "ax25: add link layer header validation function"

This reverts commit ea47781c, which was
commit ea47781c upstream.  It is
pointless unless af_packet calls the new function.
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent e3c5b884
...@@ -231,24 +231,9 @@ int ax25_rebuild_header(struct sk_buff *skb) ...@@ -231,24 +231,9 @@ int ax25_rebuild_header(struct sk_buff *skb)
#endif #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 = { const struct header_ops ax25_header_ops = {
.create = ax25_hard_header, .create = ax25_hard_header,
.rebuild = ax25_rebuild_header, .rebuild = ax25_rebuild_header,
.validate = ax25_validate_header,
}; };
EXPORT_SYMBOL(ax25_hard_header); EXPORT_SYMBOL(ax25_hard_header);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment