[strongSwan-dev] VICI: Minor inconsistency in {ike, child}-updown events

Tobias Brunner tobias at strongswan.org
Wed Feb 3 16:37:16 CET 2016

Hi Vit,

> Even though the documentation suggests that the value of the "up" parameter
> should be "yes or no", it's either up=yes, or the key is omitted.

This seems to be the case for all Boolean keys returned by VICI commands
(with the exception of "success").  Granted, the documentation of these
keys often says something like: up = <yes, if up event>

In regards to backwards compatibility, fixing the documentation might be
better.  Because users who noticed that "no" is never sent and now just
check for the existence of the "up" key would have to change their code
if we suddenly started to send back "no".  In [1] I documented that
status quo.


[1] https://git.strongswan.org/?p=strongswan.git;a=commitdiff;h=6f557710

More information about the Dev mailing list