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

Class _PacketInfo

test/framework.py:53–82  ·  view source on GitHub ↗

Private class to create packet info object. Help process information about the next packet. Set variables to default values.

Source from the content-addressed store, hash-verified

51
52
53class _PacketInfo(object):
54 """Private class to create packet info object.
55
56 Help process information about the next packet.
57 Set variables to default values.
58 """
59
60 #: Store the index of the packet.
61 index = -1
62 #: Store the index of the source packet generator interface of the packet.
63 src = -1
64 #: Store the index of the destination packet generator interface
65 #: of the packet.
66 dst = -1
67 #: Store expected ip version
68 ip = -1
69 #: Store expected upper protocol
70 proto = -1
71 #: Store the copy of the former packet.
72 data = None
73
74 def __repr__(self):
75 return f"_PacketInfo index:{self.index} src:{self.src} dst:{self.dst} ip:{self.ip} proto:{self.proto} data:{self.data}"
76
77 def __eq__(self, other):
78 index = self.index == other.index
79 src = self.src == other.src
80 dst = self.dst == other.dst
81 data = self.data == other.data
82 return index and src and dst and data
83
84
85class Send:

Callers 2

create_packet_infoMethod · 0.85
payload_to_infoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected