folder /module/py_module contains implementations of udp_scapy.py and coap.py folder /module/c_module contains a draft of C module udp2.c
Installation gRouter works with GINI platform. The documentation assumes that GINI is already installed in your PC. details for installing GINI (http://cgi.cs.mcgill.ca/~anrl/gini/documentation.html)
-
Update gRouter with the gRouter in this responsitory.
-
Download and Install SWIG(http://www.swig.org/Doc3.0/SWIGDocumentation.html#Preface_installation) Download SWIG at http://www.swig.org/download.html sample for install SWIG on UNIX:
$ ./configure
$ make
$ make install
- Download and Install Scapy(http://www.secdev.org/projects/scapy/doc/installation.html)
$ cd /tmp
$ wget scapy.net
$ unzip scapy-latest.zip
$ cd scapy-2.*
$ sudo python setup.py install
-
Use the MAKEFILE in the /src direcotry to build the gRouter
-
The module built using Python is dynamically installed into gRouter at run-time. After GINI is running. Copy all the needed files into the .gini/data/Router#.
_GINIC.so
GINIC.py
ginilib.py
udp_scapy.py
Open the CLI of gRouter using command "addmod" to install the module.
addmod udp_scapy python
if the config function is implemented correctly. A config table will be shown and states that the module is installed.