Added IKEv1 payload identifiers to "known" payload list

This commit is contained in:
Martin Willi 2011-11-15 14:58:23 +00:00
parent 2fc986182f
commit ecf854a00b
1 changed files with 9 additions and 2 deletions

View File

@ -211,8 +211,15 @@ payload_t *payload_create(payload_type_t type)
*/
bool payload_is_known(payload_type_t type)
{
if (type == HEADER ||
(type >= SECURITY_ASSOCIATION && type <= EXTENSIBLE_AUTHENTICATION))
if (type == HEADER)
{
return TRUE;
}
if (type >= SECURITY_ASSOCIATION && type <= EXTENSIBLE_AUTHENTICATION)
{
return TRUE;
}
if (type >= SECURITY_ASSOCIATION_V1 && type <= VENDOR_ID_V1)
{
return TRUE;
}