code: def index(self, pkt_num):
          
          int_check(pkt_num)
          for counter, datagram in enumerate(self.datagram):
              if pkt_num in datagram.index:
                  return counter
          return None
docs: Return datagram index.