in zktraffic/omni/omni_sniffer.py [0:0]
def _is_packet_fle_initial(self, packet):
data = get_ip_packet(packet.load).data.data
proto, offset = read_long(data, 0)
if proto != FLE.Initial.PROTO_VER: return False
server_id, offset = read_long(data, offset)
if server_id < 0: return False
election_addr, offset = read_string(data, offset)
if election_addr.count(":") != 1: return False
expected_len = 8 + 8 + 4 + len(election_addr)
if len(data) != expected_len: return False
return True