@@ -21,7 +21,7 @@ static uint8_t bootstrap_motd[MAX_MOTD_LENGTH];
21
21
static uint16_t bootstrap_motd_length ;
22
22
23
23
/* To request this packet just send a packet of length INFO_REQUEST_PACKET_LENGTH
24
- * with the first byte being BOOTSTRAP_INFO_PACKET_ID
24
+ * with the first byte being NET_PACKET_BOOTSTRAP_INFO
25
25
*/
26
26
static int handle_info_request (void * object , const IP_Port * source , const uint8_t * packet , uint16_t length ,
27
27
void * userdata )
@@ -33,7 +33,7 @@ static int handle_info_request(void *object, const IP_Port *source, const uint8_
33
33
const Networking_Core * nc = (const Networking_Core * )object ;
34
34
35
35
uint8_t data [1 + sizeof (bootstrap_version ) + MAX_MOTD_LENGTH ];
36
- data [0 ] = BOOTSTRAP_INFO_PACKET_ID ;
36
+ data [0 ] = NET_PACKET_BOOTSTRAP_INFO ;
37
37
memcpy (data + 1 , & bootstrap_version , sizeof (bootstrap_version ));
38
38
const uint16_t len = 1 + sizeof (bootstrap_version ) + bootstrap_motd_length ;
39
39
memcpy (data + 1 + sizeof (bootstrap_version ), bootstrap_motd , bootstrap_motd_length );
@@ -55,6 +55,6 @@ int bootstrap_set_callbacks(Networking_Core *net, uint32_t version, const uint8_
55
55
memcpy (bootstrap_motd , motd , motd_length );
56
56
bootstrap_motd_length = motd_length ;
57
57
58
- networking_registerhandler (net , BOOTSTRAP_INFO_PACKET_ID , & handle_info_request , net );
58
+ networking_registerhandler (net , NET_PACKET_BOOTSTRAP_INFO , & handle_info_request , net );
59
59
return 0 ;
60
60
}
0 commit comments