| From: Paul Wouters <[email protected]>
| On Thu, 3 Dec 2015, Sébastien Lefevre wrote:
| > - The connection's mark parameter expects a string, so this is mark="7" to
| > make it work. I don't know if this is on purpose.
|
| That's an odd bug in the parser it seems. The type value of mark is
| kt_string because it also accepts a mask, eg: mark=7/0xffffffff. But
| if you only put in a number, for some reason it does not think that is
| valid text. Maybe Hugh (CC: added) can share some light on that?
This is a manifestation of the simplistic parser. It thinks that
strings and numbers are distinct. mark, since it needs to handle
complicated values, requires strings. And a number isn't a string.
There are many things that could and should be improved in the parser.
This one seems easy to live with so I suggest fixing the manual so
that users don't get surprised.
_______________________________________________
Swan mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan