Giter Club home page Giter Club logo

larp-server's Introduction

LARP-server

Implementation of Labelled ARP protocol server application in userspace using Linux PF_PACKET SOCK_DGRAM and SOCK_RAW sockets.

Usage:

$ make clean

$ make all

$ ./server [-n] [-p] [-d] [-h] [-a] [-m num] [-l num] [-r min,max] [-e 1/0]

                                      OR

$ ./server [--no_check] [--print_msgs] [--print_debugs] [--print_hex_dump] [--attr_tlv] [--attr_metric num] [--label_count num] [--label_range min,max] [--entropy_flag 1/0]

-----------------------------------------------------------------------------------------------------------------------------------------------

The server application can be run using the below options:

• -n / --no_check : for testing server without a client. It responds with LARP reply messages for every ARP message received.

• -p / --print_msgs: print additional messages to show the flow of programs(for debugging)

• -d / --print_debugs: print debug messages.

• -h / -- print_hex_dump: print the hexdump of the packets. (LARP request, LARP reply and MPLS data packet)

• -a / --attr_tlv: Enable attribute TLV for the outgoing LARP replies.

• -m [num] / --attr_metric [num]: Manually provide a metric value in the TLV-ATT. Else, a randomly generated value is used in LARP replies

• -l [num] / --label_count [num]: Number of labels to be stacked in the TLV-LST. The number specifies the label count in the outgoing LARP reply label stack TLV.

• -r [min,max] / -- label_range [min,max]: Specify the range from which LARP labels need to be generated for sending out in LARP replies. If this option is not used, a randomly generated label value(s) between 16 and (2^20-1) is used.

• -e [1/0] / -- entropy_flag [1/0]: Enable/disable the entropy flag in the TLV_LST. 1 is enable and o is disable. Disabled by default.

larp-server's People

Contributors

akhileshgadde avatar

Stargazers

 avatar

Watchers

 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.