aboutsummaryrefslogtreecommitdiffstats
path: root/include/packet.c
blob: 5f551de95a55b4c57b1c1cabb725cd52c8e8096a (plain)
1
2
3
4
5
6
7
#include "packet.h"

unsigned int system_packet_checksum(struct kv_system_packet *packet) {
	return 	(packet->user_id << 8) ^ 
		(packet->operation_id | (177013 << 10));
}