LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2007, 06:36 AM   #1
the_7th_world
LQ Newbie
 
Registered: Aug 2004
Posts: 12

Rep: Reputation: 0
Recommended Packet-Level Network Library?


Hi All,

I was wondering if anyone could give me a bit of advice on linux network programming at the packet level, preferably in C++.

I need to, for all traffic coming in (and going out) on a certain interface, parse the traffic, completely remove certain packets and insert others.

I've been looking into libipq, but it does not seem like an appropriate solution - I worry that a solution based around libipq may not work due to my complete removal of certain packets and injection of others (though I'm far from educated on it, I imagine the OS may loose track of certain things and the solution would fail).

Additionally, libpcap will not work due to it's inability to inject packets.

Any thoughts and comments would be much appreciated.
Regards,
7th
 
Old 11-06-2007, 03:12 PM   #2
brazilnut
Member
 
Registered: Nov 2007
Posts: 113

Rep: Reputation: 16
My first thought was libpcap, even though i've only played with the java version. Here's some reference's, mainly c though...
http://www.opengroup.org/onlinepubs/...799/xnsix.html
http://www.thefreecountry.com/sourcecode/sockets.shtml
http://www.developerweb.net/forum/index.php
http://www.cs.rpi.edu/academics/courses/netprog/
http://mixter.void.ru/rawip.txt
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 12:06 PM
convert packet level pcap captures to flow level data hedpe Linux - Networking 1 07-27-2006 02:56 PM
library for tcp/ip level programming? (C/C++) Thinking Programming 3 12-18-2005 02:00 PM
Virus Scanner at Packet LEVEL bkankur Linux - Security 2 02-27-2005 10:56 AM
packet handling at the kernel level valib4u *BSD 4 09-14-2003 03:16 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration