def index(self, pkt_num):
int_check(pkt_num)<EOL>for counter, datagram in enumerate(self.datagram):<EOL><INDENT>if pkt_num in datagram.index:<EOL><INDENT>return counter<EOL><DEDENT><DEDENT>return None<EOL>
Return datagram index.