-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen-quick-ref
executable file
·31 lines (24 loc) · 1 KB
/
gen-quick-ref
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
gcc -I . sandscript-library-interface/dump-shared-library-contents.c -ldl
exec >sandscript-map-extension.5
cat << EOF
sandscript-map-extension
========================
For the map names, a file name is used
If the file path is absolute [starts with a /]
it is used as-is. If the path is just a file name
then it is placed in /usr/local/sandvine/etc/
This is intended to be used only on instance-0
So some policy like:
integer inst
set inst = extension.map.instance()
PolicyGroup expr(inst = 0) all {
set ign = extension.map.zero("foo.map")
set ign = extension.map.add("foo.map","This is a line")
}
Note: on the extension.map.reload(), the first parameter
is the map to reload, the second is the instance (or -1 for
all instances) to reload on. **NEITHER IS CURRENTLY IMPLEMENTED**
Calling this method will reload all maps on all instances.
EOF
LD_LIBRARY_PATH=$PWD ./a.out ./sandscript-map-extension.so | sed -e '/m->version/d' -e '0,/^----/s//\n\nEvents\n------\n\n----/'