| 1 |
# bring up the IKE SA |
| 2 |
ipsec up west-cuckold |
| 3 |
|
| 4 |
# stall the Child SA's crypto |
| 5 |
ipsec whack --impair helper_thread_delay:5 |
| 6 |
ipsec up west-cuckoo --asynchronous |
| 7 |
ipsec whack --impair helper_thread_delay:no |
| 8 |
|
| 9 |
# start the delete but impair the message leaving the delete hanging |
| 10 |
ipsec whack --impair block_outbound |
| 11 |
ipsec whack --down-ike --name west-cuckold --asynchronous |
| 12 |
../../guestbin/wait-for-pluto.sh '#1: IMPAIR: blocking outbound message 1' |
| 13 |
ipsec whack --no-impair block_outbound |
| 14 |
|
| 15 |
# wait for the child SA's stalled crypto to complete and then get |
| 16 |
# added to the IKE SA's message queue |
| 17 |
../../guestbin/wait-for-pluto.sh '#3: adding CREATE_CHILD_SA request' |
| 18 |
|
| 19 |
# Now release the delete! The IKE SA and its child will die but ... |
| 20 |
ipsec whack --impair drip_outbound:1 |
| 21 |
|
| 22 |
# The second child will revive itself using its own IKE SA |
| 23 |
../../guestbin/wait-for-pluto.sh '#4: initiator established IKE SA' |
| 24 |
../../guestbin/wait-for-pluto.sh '#5: initiator established Child SA using #4' |
| 25 |
|
| 26 |
# expect second child |
| 27 |
ipsec trafficstatus |