MCPcopy Create free account
hub / github.com/FDio/vpp / get_next_packet_info_for_interface

Method get_next_packet_info_for_interface

test/framework.py:404–419  ·  view source on GitHub ↗

Search the packet info list for the next packet info with same source interface index :param src_index: source interface index to search for :param info: packet info - where to start the search :returns: packet info or None

(self, src_index, info)

Source from the content-addressed store, hash-verified

402 return self._packet_infos[next_index]
403
404 def get_next_packet_info_for_interface(self, src_index, info):
405 """
406 Search the packet info list for the next packet info with same source
407 interface index
408
409 :param src_index: source interface index to search for
410 :param info: packet info - where to start the search
411 :returns: packet info or None
412
413 """
414 while True:
415 info = self.get_next_packet_info(info)
416 if info is None:
417 return None
418 if info.src == src_index:
419 return info
420
421 def get_next_packet_info_for_interface2(self, src_index, dst_index, info):
422 """

Calls 1

get_next_packet_infoMethod · 0.95

Tested by

no test coverage detected