aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-01-21 09:31:24 +0100
committerMartin Willi <martin@revosec.ch>2015-01-21 09:31:24 +0100
commit96df0a0ebdf3eb7f5aed00324e6b124afd0f6d11 (patch)
tree6bfb447a33f1a11d7a658a39f0c800e5b7f9744f /src
parent780bf2b8e94686c535a7bc8ffaccd9e7a7646e77 (diff)
downloadstrongswan-96df0a0ebdf3eb7f5aed00324e6b124afd0f6d11.tar.bz2
strongswan-96df0a0ebdf3eb7f5aed00324e6b124afd0f6d11.tar.xz
vici: Fix README example encoding element type values, off by one
While we fixed the wrong values in the description with d39e04b5, the example values are still off by one. Fixes #828.
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/vici/README.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libcharon/plugins/vici/README.md b/src/libcharon/plugins/vici/README.md
index 272491052..b74ef0f15 100644
--- a/src/libcharon/plugins/vici/README.md
+++ b/src/libcharon/plugins/vici/README.md
@@ -145,25 +145,25 @@ the following C array:
char msg[] = {
/* key1 = value1 */
- 2, 4,'k','e','y','1', 0,6,'v','a','l','u','e','1',
+ 3, 4,'k','e','y','1', 0,6,'v','a','l','u','e','1',
/* section1 */
- 0, 8,'s','e','c','t','i','o','n','1',
+ 1, 8,'s','e','c','t','i','o','n','1',
/* sub-section */
- 0, 11,'s','u','b','-','s','e','c','t','i','o','n',
+ 1, 11,'s','u','b','-','s','e','c','t','i','o','n',
/* key2 = value2 */
- 2, 4,'k','e','y','2', 0,6,'v','a','l','u','e','2',
+ 3, 4,'k','e','y','2', 0,6,'v','a','l','u','e','2',
/* sub-section end */
- 1,
+ 2,
/* list1 */
- 3, 5, 'l','i','s','t','1',
+ 4, 5, 'l','i','s','t','1',
/* item1 */
- 4, 0,5,'i','t','e','m','1',
+ 5, 0,5,'i','t','e','m','1',
/* item2 */
- 4, 0,5,'i','t','e','m','2',
+ 5, 0,5,'i','t','e','m','2',
/* list1 end */
- 5,
+ 6,
/* section1 end */
- 1,
+ 2,
};
## Client-initiated commands ##