MCPcopy Create free account
hub / github.com/F-Stack/f-stack / reverse

Method reverse

dpdk/usertools/dpdk-rss-flows.py:32–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 self.l4_dport = l4_dport
31
32 def reverse(self):
33 return Packet(
34 ip_src=self.ip_dst,
35 l4_sport=self.l4_dport,
36 ip_dst=self.ip_src,
37 l4_dport=self.l4_sport,
38 )
39
40 def hash_data(self, use_l4_port: bool = False) -> bytes:
41 data = self.ip_src.packed + self.ip_dst.packed

Callers 3

jquery.jsFile · 0.80
jquery.qtip.jsFile · 0.80
balanced_trafficFunction · 0.80

Calls 1

PacketClass · 0.85

Tested by

no test coverage detected