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

Class Event

test/test_nat44_ei.py:43–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42# NAT HA protocol event data
43class Event(Packet):
44 name = "Event"
45 fields_desc = [
46 ByteEnumField("event_type", None, {1: "add", 2: "del", 3: "refresh"}),
47 ByteEnumField("protocol", None, {0: "other", 1: "udp", 2: "tcp", 3: "icmp"}),
48 ShortField("flags", 0),
49 IPField("in_addr", None),
50 IPField("out_addr", None),
51 ShortField("in_port", None),
52 ShortField("out_port", None),
53 IPField("eh_addr", None),
54 IPField("ehn_addr", None),
55 ShortField("eh_port", None),
56 ShortField("ehn_port", None),
57 IntField("fib_index", None),
58 IntField("total_pkts", 0),
59 LongField("total_bytes", 0),
60 ]
61
62 def extract_padding(self, s):
63 return "", s
64
65
66# NAT HA protocol header

Callers 3

setUpClassMethod · 0.85
test_ha_recvMethod · 0.85
setUpClassMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_ha_recvMethod · 0.68