Giter VIP home page Giter VIP logo

netfilter-nfqueue-samples's People

Contributors

zetagor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

netfilter-nfqueue-samples's Issues

Difference in output result for the code sample-helloworld

Why the difference in output result for the same code ?

on actual AMD Ubuntu PC platform :

dell@dell-hpc:~/Downloads/netfilter-nfqueue-samples$ ./sample-helloworld 
opening library handle
unbinding existing nf_queue handler for AF_INET (if any)
error during nfq_unbind_pf()
dell@dell-hpc:~/Downloads/netfilter-nfqueue-samples$ 

on QEMU ARM emulation platform :

# mv /mnt/host/sample-helloworld /home/qemu/
# cd home/qemu/
# ./sample-helloworld 
opening library handle
error during nfq_open()
# 

So, I test whether the socket is occupied as follows:

on actual AMD Ubuntu PC platform :

dell@dell-hpc:~/Downloads/netfilter-nfqueue-samples$ lsof -i -P -n | grep LISTEN
PM2\x20v4  2751  rog   16u  IPv4  43760      0t0  TCP 127.0.0.1:8081 (LISTEN)
soc_term  19017  rog    3u  IPv4 228170      0t0  TCP *:54321 (LISTEN)
soc_term  19018  rog    3u  IPv4 232923      0t0  TCP *:54320 (LISTEN)
qemu-syst 19021  rog   14u  IPv4 232938      0t0  TCP *:1234 (LISTEN)
qemu-syst 19021  rog   15u  IPv6 232939      0t0  TCP *:1234 (LISTEN)
dell@dell-hpc:~/Downloads/netfilter-nfqueue-samples$ 

no output on QEMU ARM emulation platform

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.