[Swan] Error codes

Paul Wouters paul at nohats.ca
Thu Mar 5 17:50:22 EET 2015


On Thu, 5 Mar 2015, John Crisp wrote:

> Another query.
>
> I am calling ipsec via a perl routine as below. rereadsecrets seems to
> run ok, but auto --replace throws an error :
>
> ipsec replace failed( error code 1280)
>
> However, it seems to have completed correctly so my guess is this is
> actually an 'OK' ? Is there any information on status/output codes ?

What is the output shown?

for non-existing connections, it seems to just return 1:

root at bofh:/home/paul# ipsec auto --replace foobar
conn 'foobar': not found (tried aliases)
root at bofh:/home/paul# echo $?
1

Paul


More information about the Swan mailing list