niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » embedded
Basic software to help me build a network appliance
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
frank_6014@yahoo.com
*nix forums beginner


Joined: 20 Jun 2006
Posts: 8

PostPosted: Mon Jun 26, 2006 2:59 pm    Post subject: Basic software to help me build a network appliance Reply with quote

Hi,

I posted this a while back but didn't get any responses. Perhaps
I didn't state my problem well enough, so I'd like to retry again w/
a better problem definition.

I'm looking for any free (or low cost) software that can help me
build my network appliance. What I need is simply:

1. Something that redirects/passes Ethernet frames as seen by the
interface into my C/C++ program. I need to set the interface to
promiscuous mode at times. These Ethernet frames should be sent
to my program before being passed to the Linux Kernel by the
network device (if possible, i.e. as early on as possible).

2. My program needs to be able to construct Ethernet frames and
send it out on an interface.

3. My system is a Pentium 4 1.8GHz with 256MB RAM and dual
Intel gigE interfaces running Linux 2.6.x (w/ just the kernel and the
min. development setup, I can put additional software in if needed).

3. Currently I'm using libpcap and libnet for the above tasks. But
these libraries performance is not high enough because I'm dropping
some frames when I put the system into promiscuous mode and
get traffic that's ony about 15Mbps. (I'd like to get as close to
100Mbps
as possible.)

Thanks in advance for your help.
If I receive any emailed answers, I will post a summary. My email
address is frank_6014 at yahoo (with the .com)
Back to top
frank_6014@yahoo.com
*nix forums beginner


Joined: 20 Jun 2006
Posts: 8

PostPosted: Thu Jul 13, 2006 3:21 am    Post subject: Re: Basic software to help me build a network appliance Reply with quote

Previously I posted asking if there is any free software available that
allows me to filter network traffic and inject new traffic on the
Ethernet frame level on my PC (network appliance) based on Linux.
Mainly, I wanted to replace the libpcap and libnet that I was using at
the time because of a lack of performance w/ those libs.

I mentioned I'd post a summary of anything I received...

Anyway, I didn't get any responses so I wrote a basic kernel driver
that uses memory mapping to transfer the Ethernet frames intercepted on
any of my computer's interfaces to my user-space programs. this module
replaced libnet and libpcap and solved my performance issue. The
driver communicates w/ user-space programs thru as char device (similar
to vtun but with flexible filtering). Also wrote a C library that
provides high level access to the driver.

If anyone's interested, I can let you use it (send email to me
frank_6014 at yahoo) since I can't find any existing softwrae and
nobody's replied to my numerous posts... so either nobody wants this or
there aren't any free ones.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 1:18 pm | All times are GMT
navigation Forum index » *nix » Linux » embedded
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts MySQL Max Build Policy Kaj Arnö MySQL 0 Fri Jul 21, 2006 2:08 pm
No new posts make printer network available Johann Höchtl networking 0 Fri Jul 21, 2006 9:01 am
No new posts Software interrupts Jamie FreeBSD 0 Fri Jul 21, 2006 6:45 am
No new posts Network Throttling wizzy Gentoo 1 Fri Jul 21, 2006 1:40 am
No new posts Bug#379048: ITP: libcsoap -- library in C for SOAP networ... Rudi Cilibrasi devel 0 Thu Jul 20, 2006 7:30 pm

Quality Hosting - Affordable Prices | Loans | Credit Card Consolidation | Car Loan | Buy Anything On eBay
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3536s ][ Queries: 16 (0.2260s) ][ GZIP on - Debug on ]