summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm/inetable/trans/boot.leave
blob: 233ef9e40ffcaf6375dde2b43afd401a33de7567 (plain)
1
2
3
4
5
6
7
8
9
10
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
contact: Jan Huwald // Impressum