예제 #1
0
 def _supervisory_frame(packet):
     standard_frame = l2cap_packets.StandardFrameView(packet)
     if standard_frame.GetFrameType() != l2cap_packets.FrameType.S_FRAME:
         return None
     return l2cap_packets.EnhancedSupervisoryFrameView(standard_frame)
예제 #2
0
 def _information_frame(packet):
     standard_frame = l2cap_packets.StandardFrameView(packet)
     if standard_frame.GetFrameType() != l2cap_packets.FrameType.I_FRAME:
         return None
     return l2cap_packets.EnhancedInformationFrameView(standard_frame)