def check(self):
     tr = TraceAnalyzer(self._sim_log_dir.name + "/trace_node_left.pcap")
     initials = tr.get_initial(Direction.FROM_CLIENT)
     dcid = ""
     for p in initials:
         dcid = p.dcid
         break
     if dcid is "":
         logging.info("Didn't find an Initial / a DCID.")
         return False
     vnps = tr.get_vnp()
     for p in vnps:
         if p.scid == dcid:
             return True
     logging.info(
         "Didn't find a Version Negotiation Packet with matching SCID.")
     return False
Beispiel #2
0
 def check(self):
   tr = TraceAnalyzer(self._sim_log_dir.name + "/trace_node_left.pcap")
   cap_initial = tr.get_initial(Direction.FROM_CLIENT)
   dcid = ""
   for p in cap_initial:
     dcid = p.quic.dcid
   cap_initial.close()
   if dcid is "":
     logging.info("Didn't find an Initial / a DCID.")
     return False
   cap_server = tr.get_vnp()
   conn_id_matches = False
   for p in cap_server:
     if p.quic.scid == dcid:
       conn_id_matches = True
   cap_server.close()
   if not conn_id_matches:
     logging.info("Didn't find a Version Negotiation Packet with matching SCID.")
   return conn_id_matches