Skip to content

anrl/python-interface-for-grouter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Interface For gRouter

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)

  1. Update gRouter with the gRouter in this responsitory.

  2. 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
  1. 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
  1. Use the MAKEFILE in the /src direcotry to build the gRouter

  2. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.6%
  • Python 4.0%
  • C++ 2.2%
  • Makefile 0.2%