Revert "ax25: add link layer header validation function"
This reverts commit0954b59d9f, which was commitea47781c26upstream. It is pointless unless af_packet calls the new function. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user