/testing/guestbin/swan-prep
west #
 # confirm that the network is alive
west #
 ../../pluto/bin/wait-until-alive -I 192.0.1.254 192.0.2.254
destination -I 192.0.1.254 192.0.2.254 is alive
west #
 ipsec start
Redirecting to: [initsystem]
west #
 /testing/pluto/bin/wait-until-pluto-started
west #
 ipsec whack --impair major-version-bump
west #
 ipsec whack --impair delete-on-retransmit
west #
 ipsec whack --impair revival
west #
 ipsec auto --add westnet-eastnet-ikev2-major
002 added connection description "westnet-eastnet-ikev2-major"
west #
 echo "initdone"
initdone
west #
 ipsec auto --up  westnet-eastnet-ikev2-major
1v2 "westnet-eastnet-ikev2-major" #1: initiating IKEv2 IKE SA
1v2 "westnet-eastnet-ikev2-major" #1: STATE_PARENT_I1: sent v2I1, expected v2R1
002 "westnet-eastnet-ikev2-major" #1: STATE_PARENT_I1: received unauthenticated v2N_INVALID_MAJOR_VERSION - ignored
002 "westnet-eastnet-ikev2-major" #1: IMPAIR: retransmit so deleting SA
002 "westnet-eastnet-ikev2-major" #1: deleting state (STATE_PARENT_I1) and NOT sending notification
002 "westnet-eastnet-ikev2-major" #1: IMPAIR: skipping revival of connection that is supposed to remain up
west #
 echo done
done
west #
 grep INVALID_MAJOR_VERSION /tmp/pluto.log
|    Notify Message Type: v2N_INVALID_MAJOR_VERSION (0x5)
"westnet-eastnet-ikev2-major" #1: STATE_PARENT_I1: received unauthenticated v2N_INVALID_MAJOR_VERSION - ignored
west #
 grep "INVALID_MAJOR_VERSION" /tmp/pluto.log >/dev/null && echo payload found
payload found
west #
 ../bin/check-for-core.sh
west #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

