GithubHelp home page GithubHelp logo

jovigb / jpcap-x64 Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 9.0 1.73 MB

sniffer capture network packet supoort x64 on win7

License: GNU Lesser General Public License v2.1

HTML 85.87% Java 1.61% C 11.50% C++ 0.27% Makefile 0.11% CSS 0.43% NSIS 0.21%

jpcap-x64's People

Contributors

jovigb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jpcap-x64's Issues

Issue while decoding fragmentation flags in IP packet decoding

Hello,

The issue is located in src/c/packet_ip.c lines 50 to 52 where fragmentation flags (Don't fragment and More fragment flags) are not processed properly.
A call to C ntohs() function shall be used:

  • (jboolean)(((ntohs(ip_pkt->ip_off)&IP_RF)>0)?JNI_TRUE:JNI_FALSE),
  • (jboolean)((((ntohs(ip_pkt->ip_off)) &IP_DF)>0)?JNI_TRUE:JNI_FALSE),
  • (jboolean)(((ntohs(ip_pkt->ip_off) &IP_MF)>0)?JNI_TRUE:JNI_FALSE),

This fixed was tested on both Win10 & Linux Ubuntu 18.04 TLS

In addition, I also replace line 44:

  • (jbyte)ip_pkt->ip_v

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.