selftest/tls: Add test to verify received 'type' of non-data record
authorVakul Garg <vakul.garg@nxp.com>
Wed, 20 Feb 2019 08:43:00 +0000 (08:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Feb 2019 19:05:55 +0000 (11:05 -0800)
commit203ef5f1ff9f6abb558310550c2597c5432d5509
treedf4017fdbafc3339f46581c71c98c90ae28e830d
parent375ca548f7e3ac82acdd0959eddd1fa0e17c35cc
selftest/tls: Add test to verify received 'type' of non-data record

Test case 'control_msg' has been updated to peek non-data record and
then verify the type of record received. Subsequently, the same record
is retrieved without MSG_PEEK flag in recvmsg().

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/tls.c