[Swan] Interworking with Cisco VTI model (any-to-any tunnel, selected routing)

D. Hugh Redelmeier hugh at mimosa.com
Fri Dec 4 03:10:08 UTC 2015


| From: Paul Wouters <paul at nohats.ca>

| 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.


More information about the Swan mailing list