Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I030f75234a346ef6a20640c1a0ed65f4934867f2
S (mp);
/* Use a control ping for synchronization */
S (mp);
/* Use a control ping for synchronization */
+ if (!lm->ping_id)
+ lm->ping_id = vl_msg_api_get_msg_index ((u8 *) (VL_API_CONTROL_PING_CRC));
mp_ping = vl_msg_api_alloc_as_if_client (sizeof (*mp_ping));
mp_ping->_vl_msg_id = htons (lm->ping_id);
mp_ping->client_index = vam->my_client_index;
mp_ping = vl_msg_api_alloc_as_if_client (sizeof (*mp_ping));
mp_ping->_vl_msg_id = htons (lm->ping_id);
mp_ping->client_index = vam->my_client_index;
S (mp);
/* Use a control ping for synchronization */
S (mp);
/* Use a control ping for synchronization */
+ if (!mm->ping_id)
+ mm->ping_id = vl_msg_api_get_msg_index ((u8 *) (VL_API_CONTROL_PING_CRC));
mp_ping = vl_msg_api_alloc_as_if_client (sizeof (*mp_ping));
mp_ping->_vl_msg_id = htons (mm->ping_id);
mp_ping->client_index = vam->my_client_index;
mp_ping = vl_msg_api_alloc_as_if_client (sizeof (*mp_ping));
mp_ping->_vl_msg_id = htons (mm->ping_id);
mp_ping->client_index = vam->my_client_index;
S (mp);
/* Use a control ping for synchronization */
S (mp);
/* Use a control ping for synchronization */
+ if (!mm->ping_id)
+ mm->ping_id = vl_msg_api_get_msg_index ((u8 *) (VL_API_CONTROL_PING_CRC));
mp_ping = vl_msg_api_alloc_as_if_client (sizeof (*mp_ping));
mp_ping->_vl_msg_id = htons (mm->ping_id);
mp_ping->client_index = vam->my_client_index;
mp_ping = vl_msg_api_alloc_as_if_client (sizeof (*mp_ping));
mp_ping->_vl_msg_id = htons (mm->ping_id);
mp_ping->client_index = vam->my_client_index;
write('} vl_api_%s_t;\n' % o.name)
write('} vl_api_%s_t;\n' % o.name)
+ for t in s['Define']:
+ write('#define VL_API_{ID}_CRC "{n}_{crc:08x}"\n'
+ .format(n=t.name, ID=t.name.upper(), crc=t.crc))
+