/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec addconn --name nic-offload=        #nic-offload=
"nic-offload=": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec addconn --name nic-offload=no      nic-offload=no
"nic-offload=no": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec addconn --name nic-offload=yes     nic-offload=yes
"nic-offload=yes": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec addconn --name nic-offload=packet  nic-offload=packet
"nic-offload=packet": failed to add connection: nic-offload=packet restricted to type=transport
west #
 ipsec addconn --name nic-offload=crypto  nic-offload=crypto
"nic-offload=crypto": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec addconn --name type=transport-nic-offload=packet  type=transport nic-offload=packet
"type=transport-nic-offload=packet": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec addconn --name type=tunnel-nic-offload=packet     type=tunnel    nic-offload=packet
"type=tunnel-nic-offload=packet": failed to add connection: nic-offload=packet restricted to type=transport
west #
 ipsec addconn --name phase2=esp-type=transport-nic-offload=packet  phase2=esp type=transport nic-offload=packet
"phase2=esp-type=transport-nic-offload=packet": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec addconn --name phase2=ah-type=transport-nic-offload=packet   phase2=ah  type=transport nic-offload=packet
"phase2=ah-type=transport-nic-offload=packet": failed to add connection: nic-offload=packet restricted to phase2=esp
west #
 ipsec addconn --name compress=yes-type=transport-nic-offload=packet  compress=yes type=transport nic-offload=packet
"compress=yes-type=transport-nic-offload=packet": failed to add connection: nic-offload=packet restricted to compress=no
west #
 ipsec addconn --name compress=no-type=transport-nic-offload=packet   compress=no  type=transport nic-offload=packet
"compress=no-type=transport-nic-offload=packet": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec addconn --name encapsulation=yes-type=transport-nic-offload=packet   encapsulation=yes  type=transport nic-offload=packet
"encapsulation=yes-type=transport-nic-offload=packet": failed to add connection: nic-offload=packet cannot specify encapsulation=yes
west #
 ipsec addconn --name encapsulation=no-type=transport-nic-offload=packet    encapsulation=no   type=transport nic-offload=packet
"encapsulation=no-type=transport-nic-offload=packet": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec addconn --name encapsulation=auto-type=transport-nic-offload=packet  encapsulation=auto type=transport nic-offload=packet
"encapsulation=auto-type=transport-nic-offload=packet": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 #
west #
 ipsec whack --name whack                                           --transport --host 1.2.3.4 --to --host 5.6.7.8
"whack": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--nic-offload-x      --nic-offload x       --transport --host 1.2.3.4 --to --host 5.6.7.8
"whack--nic-offload-x": failed to add connection: "nic-offload=x" is invalid, valid options are "no", "crypto", and "packet"
west #
 ipsec whack --name whack--nic-offload=no     --nic-offload=no      --transport --host 1.2.3.4 --to --host 5.6.7.8
"whack--nic-offload=no": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--nic-offload=yes    --nic-offload=yes     --transport --host 1.2.3.4 --to --host 5.6.7.8
"whack--nic-offload=yes": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--nic-offload=packet --nic-offload=packet  --transport --host 1.2.3.4 --to --host 5.6.7.8
"whack--nic-offload=packet": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--nic-offload=crypto --nic-offload=crypto  --transport --host 1.2.3.4 --to --host 5.6.7.8
"whack--nic-offload=crypto": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--passthrough                                            --pass --host 1.2.3.4 --to --host 5.6.7.8
"whack--passthrough": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--passthrough--nic-offload=no      --nic-offload=no      --pass --host 1.2.3.4 --to --host 5.6.7.8
warning: "whack--passthrough--nic-offload=no": "nic-offload=no" ignored for never-negotiate ("type=pass") connection
"whack--passthrough--nic-offload=no": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--passthrough--nic-offload=yes     --nic-offload=yes     --pass --host 1.2.3.4 --to --host 5.6.7.8
warning: "whack--passthrough--nic-offload=yes": "nic-offload=yes" ignored for never-negotiate ("type=pass") connection
"whack--passthrough--nic-offload=yes": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--passthrough--nic-offload=packet  --nic-offload=packet  --pass --host 1.2.3.4 --to --host 5.6.7.8
warning: "whack--passthrough--nic-offload=packet": "nic-offload=packet" ignored for never-negotiate ("type=pass") connection
"whack--passthrough--nic-offload=packet": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--passthrough--nic-offload=crypto  --nic-offload=crypto  --pass --host 1.2.3.4 --to --host 5.6.7.8
warning: "whack--passthrough--nic-offload=crypto": "nic-offload=crypto" ignored for never-negotiate ("type=pass") connection
"whack--passthrough--nic-offload=crypto": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec connectionstatus | sed -n -e 's/\(^[^:]*:\).* \(nic-offload:[^;]*\);.*/\1 \2/p' | sort
"compress=no-type=transport-nic-offload=packet": nic-offload:packet
"encapsulation=auto-type=transport-nic-offload=packet": nic-offload:packet
"encapsulation=no-type=transport-nic-offload=packet": nic-offload:packet
"nic-offload=crypto": nic-offload:crypto
"nic-offload=": nic-offload:no
"nic-offload=no": nic-offload:no
"nic-offload=yes": nic-offload:crypto
"phase2=esp-type=transport-nic-offload=packet": nic-offload:packet
"type=transport-nic-offload=packet": nic-offload:packet
"whack--nic-offload=crypto": nic-offload:crypto
"whack": nic-offload:no
"whack--nic-offload=no": nic-offload:no
"whack--nic-offload=packet": nic-offload:packet
"whack--nic-offload=yes": nic-offload:crypto
"whack--passthrough--nic-offload=crypto": nic-offload:no
"whack--passthrough": nic-offload:no
"whack--passthrough--nic-offload=no": nic-offload:no
"whack--passthrough--nic-offload=packet": nic-offload:no
"whack--passthrough--nic-offload=yes": nic-offload:no
west #
