Page MenuHomeClusterLabs Projects

002_bad_packets.txt
No OneTemporary

002_bad_packets.txt

# vim: ft=sh et :
#
# This test is mostly concerned with ignoring invalid packets.
# We're expecting heartbeat packets.
ticket:
state ST_LEADER
leader local
current_term 500
# defaults
message:
header.cmd OP_HEARTBEAT
ticket.term 500
#header.from booth_conf->site[2].site_id
header.from local->site_id
header.result 0
message0: # bad result code
header.result 243521741
outgoing0:
state ST_LEADER
message1: # bad sender
header.from 71
outgoing1:
state ST_LEADER
message2: # bad version
header.version 512
outgoing2:
state ST_LEADER
message3: # bad magic
header.version 31
outgoing3:
state ST_LEADER
message4: # bad length
header.length 16
outgoing4:
state ST_LEADER
message5: # bad ticket ID
ticket.id "gibtsnich"
outgoing5:
state ST_LEADER
message100: # should work
ticket.term 510
# no outgoing message
finally:
state ST_FOLLOWER
current_term 510

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 25, 5:49 AM (20 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1225114
Default Alt Text
002_bad_packets.txt (1 KB)

Event Timeline