On Sun, 26 Aug 2018, D. Hugh Redelmeier wrote:
Why is connalias not documented?
I think because it is supposed to be an "internal API".
It is tested in testing/pluto/alias-01.
There it is used explicitely. I think this is used to alias connections for subnets=, eg conn test leftsubnets={10.0.2.0/24, 10.0.1.0/24} rightsubnets={192.168.0.0/24, 192.168.100.0/24} [...] This will create 3 conns: test/0x1 test/0x2 test/1x1 test/0x2 (I believe left starts at 0 and right starts at 1 for unknown reasons) Anyway,when you do ipsec auto --down test, it will find these "aliases" too and bring those 4 conns down. see: ikev2-16-alias-whack-start
If it isn't documented, does anyone use it? If not, can we delete it?
So yes, it is used and you cannot delete it. I guess possibly we _could_ delete the exported keyword and make it all internal-only, but this goes from libipsecconf via whack to pluto and I don't remember where the conn expansion takes place. Paul _______________________________________________ Swan-dev mailing list Swan-dev@lists.libreswan.org https://lists.libreswan.org/mailman/listinfo/swan-dev