Giter VIP home page Giter VIP logo

groupify's Introduction

Prerequisite

python3 -m pip install bitarray
sudo apt-get install -y python3-tk

OLSR config

git clone https://github.com/OLSR/OONF.git
sudo apt-get install -y cmake
sudo apt-get install -y build-essential libnl-3-dev
cd build
cmake ..
make

sudo ./olsrd2_static wlp2s0 lo

Start app

sudo python3 ./main.py

Simulate Multi-hop by fix route

The topology will be like this to test multihop.

** if is interface, please change wlp3s0 with you wireless interface ** M <-> A <-> L

M: 192.168.1.9
A: 192.168.1.10
L: 192.168.1.11

PC M (192.168.1.9)

telnet 127.0.0.1 2009
route get
route add src-ip 192.168.1.9 gw 192.168.1.10 dst 192.168.1.11 if wlp3s0
route del src-ip 192.168.1.9 dst 192.168.1.11 if wlp3s0

PC L (192.168.1.11)

telnet 127.0.0.1 2009
route get
route add src-ip 192.168.1.11 gw 192.168.1.10 dst 192.168.1.9 if wlp3s0
route del src-ip 192.168.1.11 dst 192.168.1.9 if wlp3s0

Step

  1. open termainal then run
cd /OONF/build
sudo ./olsrd2_static wlp2s0 lo
  1. open another terminal and change directory to groupify
cd /groupify
  1. copy adhoc-config.example.sh to be adhoc-config.sh
cp adhoc-config.example.sh adhoc-config.sh
  1. In adhoc-config.sh, if you would like to auto assign ip address via olsrd, please comment the last line (to be like the following)
# sudo ip addr add 192.168.1.9/24 dev $iface
  1. run following command to config adhoc and start app
sudo bash adhoc-config.sh
sudo python3 main.py
  1. change to manage mode
sudo bash manage-config.sh

groupify's People

Contributors

npmoewii avatar pawin35 avatar chinyyyyyyyy avatar blueaquacat avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.