payload: Use common prefixes for all payload type identifiers
The old identifiers did not use a proper namespace and often clashed with other defines.
This commit is contained in:
@@ -209,7 +209,7 @@ static void build(private_isakmp_vendor_t *this, message_t *message)
|
||||
(vendor_ids[i].extension == EXT_IKE_FRAGMENTATION && fragmentation))
|
||||
{
|
||||
DBG2(DBG_IKE, "sending %s vendor ID", vendor_ids[i].desc);
|
||||
vid_payload = vendor_id_payload_create_data(VENDOR_ID_V1,
|
||||
vid_payload = vendor_id_payload_create_data(PLV1_VENDOR_ID,
|
||||
chunk_clone(chunk_create(vendor_ids[i].id, vendor_ids[i].len)));
|
||||
message->add_payload(message, &vid_payload->payload_interface);
|
||||
}
|
||||
@@ -220,7 +220,7 @@ static void build(private_isakmp_vendor_t *this, message_t *message)
|
||||
this->best_natt_ext == i)
|
||||
{
|
||||
DBG2(DBG_IKE, "sending %s vendor ID", vendor_natt_ids[i].desc);
|
||||
vid_payload = vendor_id_payload_create_data(VENDOR_ID_V1,
|
||||
vid_payload = vendor_id_payload_create_data(PLV1_VENDOR_ID,
|
||||
chunk_clone(chunk_create(vendor_natt_ids[i].id,
|
||||
vendor_natt_ids[i].len)));
|
||||
message->add_payload(message, &vid_payload->payload_interface);
|
||||
@@ -240,7 +240,7 @@ static void process(private_isakmp_vendor_t *this, message_t *message)
|
||||
enumerator = message->create_payload_enumerator(message);
|
||||
while (enumerator->enumerate(enumerator, &payload))
|
||||
{
|
||||
if (payload->get_type(payload) == VENDOR_ID_V1)
|
||||
if (payload->get_type(payload) == PLV1_VENDOR_ID)
|
||||
{
|
||||
vendor_id_payload_t *vid;
|
||||
bool found = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user