calipso: Add validation of CALIPSO option.
authorHuw Davies <huw@codeweavers.com>
Mon, 27 Jun 2016 19:06:17 +0000 (15:06 -0400)
committerPaul Moore <paul@paul-moore.com>
Mon, 27 Jun 2016 19:06:17 +0000 (15:06 -0400)
commit2e532b702834c07f614caf4489feb691e713232a
tree6214ab300ca11aaa1fe4ff47ee4b551a35794432
parenta04e71f631fa3d2fd2aa0404c11484739d1e9073
calipso: Add validation of CALIPSO option.

Lengths, checksum and the DOI are checked.  Checking of the
level and categories are left for the socket layer.

CRC validation is performed in the calipso module to avoid
unconditionally linking crc_ccitt() into ipv6.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/net/calipso.h
net/ipv6/calipso.c
net/ipv6/exthdrs.c