Giter Club home page Giter Club logo

jicmp's Introduction

About JICMP

JICMP is a small library to allow the use of IPv4 ICMP (raw) packets in Java.

Build from source

Requirements
  • git

  • automake

  • autoconf

  • libtool

  • Java JDK 1.5+

The repository has a git submodule which contains Macros required to compile from source code.

Clone the respository on local disk
git clone https://github.com/OpenNMS/jicmp.git
Switch into source code repository
cd jicmp
Initialize and update the git submodule.
git submodule update --init --recursive
Update generated configuration files with
autoreconf -fvi
Generate make files using /usr/local/lib as install path and compile JICMP
./configure
make
Tip
If you want to change the install path the ./configure --prefix=/your/custom/path can be used.
Install the library on your system, root permissions may required when working as non-root user.
sudo make install

Using JICMP as non-root

Mac OS X supports non-root ICMP through the SOCK\_DRGAM interface, which JICMP uses by default.

Linux supports this as well, but you additionally need to set a sysctl OID to allow ping for non-root users.

You can set this temporarily by running:

sysctl -w net.ipv4.ping_group_range="0 429496729"
  1. or by creating a sysctl configuration file in /etc:

echo "net.ipv4.ping_group_range=0 429496729" > /etc/sysctl.d/03-non-root-icmp.conf

jicmp's People

Contributors

brozow avatar deejgregor avatar fooker avatar indigo423 avatar luizluca avatar opennms-bamboo avatar rangerrick avatar rssntn67 avatar

Watchers

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