diff --git a/META b/META index 06a560c..6cc06da 100644 --- a/META +++ b/META @@ -1,5 +1,5 @@ description = "poor man's network simulator" -version = "1" +version = "1.0.1" requires = "findlib bitstring bitstring.ppx batteries" archive(byte) = "robinet.cma" archive(native) = "robinet.cmxa" diff --git a/Makefile b/Makefile index 97af879..e1bd9ca 100644 --- a/Makefile +++ b/Makefile @@ -87,23 +87,18 @@ $(CLIB): $(C_SOURCES:.c=.o) examples: $(EXAMPLES) @if which setcap > /dev/null 2>&1 ; then \ + echo "You should run:" ;\ for f in $(EXAMPLES); do \ - sudo setcap cap_net_raw,cap_net_admin=eip $$f ;\ + echo "sudo setcap cap_net_raw,cap_net_admin=eip $$f" ;\ done ;\ fi robinet.top: $(ARCHIVE) $(OCAMLMKTOP) $(WARNS) -o $@ -package "findlib $(REQUIRES)" $(ARCHIVE) @if which setcap > /dev/null 2>&1 ; then \ - sudo setcap cap_net_raw,cap_net_admin=eip $@ ;\ + echo "You should run:" ;\ + echo "sudo setcap cap_net_raw,cap_net_admin=eip $@" ;\ fi clean-spec: rm -f examples/*.cm[ioxa] examples/*.o $(EXAMPLES) - -install: - ocamlfind install robinet *.cmi robinet.cmxa robinet.cma META - -uninstall: - ocamlfind remove robinet - diff --git a/examples/router_frenzy_set_bridge.sh b/examples/router_frenzy_set_bridge.sh index a1cf27c..b26982d 100755 --- a/examples/router_frenzy_set_bridge.sh +++ b/examples/router_frenzy_set_bridge.sh @@ -1,12 +1,13 @@ #!/bin/sh +# Assuming router_frenzy is run with -s 10 to avoid 192.168.0.0/24: sudo ip link add type veth sudo ifconfig veth0 192.168.10.42 up sudo ifconfig veth1 up -sudo ip route add 192.168.11.0/24 dev veth0 via 192.168.10.1 -sudo ip route add 192.168.12.0/24 dev veth0 via 192.168.10.1 -sudo ip route add 192.168.13.0/24 dev veth0 via 192.168.10.1 +for i in `seq 11 30`; do + sudo ip route add 192.168.$i.0/24 dev veth0 via 192.168.10.1 +done -# Once the target is known, assuming first router is 192.168.0.1: -#sudo ip route add $target/32 dev veth0 via 192.168.0.1 +# Once the target is known, assuming first router is 192.168.10.1: +#sudo ip route add $target/32 dev veth0 via 192.168.10.1 diff --git a/opam b/opam index 579a55b..c6a3a70 100644 --- a/opam +++ b/opam @@ -1,5 +1,5 @@ opam-version: "2.0" -version: "1.0.0" +version: "1.0.1" name: "robinet" maintainer: "rixed-opam@happyleptic.org" authors: "rixed-opam@happyleptic.org"