diff options
author | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-09 19:52:15 (GMT) |
---|---|---|
committer | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-09 19:52:15 (GMT) |
commit | cd9f7aca64327e29cc8acb55d94f21a2da03330e (patch) | |
tree | e6aafe13e28045fad9cad192dd14c4b7a419d2f9 /files/common/etc/fsm/inetable/trans/boot.leave | |
parent | ef0ab9ba3f0042f59c0a8f155fcb61187585303e (diff) |
add FSM inetable
- implemented according to documentation
- almost no tests so far
Diffstat (limited to 'files/common/etc/fsm/inetable/trans/boot.leave')
-rwxr-xr-x | files/common/etc/fsm/inetable/trans/boot.leave | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/files/common/etc/fsm/inetable/trans/boot.leave b/files/common/etc/fsm/inetable/trans/boot.leave new file mode 100755 index 0000000..233ef9e --- /dev/null +++ b/files/common/etc/fsm/inetable/trans/boot.leave @@ -0,0 +1,11 @@ +#!/bin/sh -e + +# init gwid table by merging it with a hand-crafted table in which all +# available IPs are stored as free with version zero. This guarantees +# that any update on any node will have a higher version. +for i in $(seq 0 254); do + echo -e "$i\t0\tfree" +done > /tmp/gwip-init +p2ptbl init /tmp/p2ptbl/gwip +p2ptbl merge /tmp/p2ptbl/gwip /tmp/gwip-init +rm /tmp/gwip-init |