Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C (http://www.programmingforums.org/forum60.html)
-   -   Packet filtering (http://www.programmingforums.org/showthread.php?t=14706)

majestyelias Dec 7th, 2007 5:55 AM

Packet filtering
 
I want to create a program in C which it will be able to packet tcp/udp packets. Any steps i should follow to solve this problem? I have a few socket programming experience using the api from the writer of the book, i bought for the lesson "Networks & Internet". Thank you

Salem Dec 7th, 2007 6:24 AM

Re: Packet filtering
 
http://sourceforge.net
Search for "firewall", one of the most common packet filtering applications and see what kind of things they do.

You didn't mention your OS/Compiler.

majestyelias Dec 7th, 2007 2:26 PM

Re: Packet filtering
 
Quote:

Originally Posted by Salem (Post 138174)
http://sourceforge.net
Search for "firewall", one of the most common packet filtering applications and see what kind of things they do.

You didn't mention your OS/Compiler.

i m using the extension of NetBeans for the C language in Linux. do'nt you know anything else to read except from firewalls?

Dameon Dec 7th, 2007 3:00 PM

Re: Packet filtering
 
What are you trying to accomplish? Why are you writing your own? Linux has great support for packet filtering built in - you can do most anything that you'd need with iptables.

majestyelias Dec 7th, 2007 3:07 PM

Re: Packet filtering
 
Quote:

Originally Posted by Dameon (Post 138180)
What are you trying to accomplish? Why are you writing your own? Linux has great support for packet filtering built in - you can do most anything that you'd need with iptables.

its for a university project.an extra assignment and the professor doesnt give us any help.a few students took this assignment and i want to do it.

Sane Dec 7th, 2007 3:11 PM

Re: Packet filtering
 
Are you trying to filter which packets actually make it to the application layer? Or do you only need to listen in and echo those that meet certain criteria?

majestyelias Dec 7th, 2007 3:35 PM

Re: Packet filtering
 
Quote:

Originally Posted by Sane (Post 138182)
Are you trying to filter which packets actually make it to the application layer? Or do you only need to listen in and echo those that meet certain criteria?

basically im very confused. i want to filter out those packets which are for voip. it has a certain hexadecimal code.i cant remember it now.

andro Dec 7th, 2007 4:41 PM

Re: Packet filtering
 
http://sourceforge.net/projects/libpcap/

majestyelias Dec 7th, 2007 8:51 PM

Re: Packet filtering
 
Quote:

Originally Posted by andro (Post 138184)

anyone who knows socket programming from the scratch to help?

Salem Dec 8th, 2007 2:13 AM

Re: Packet filtering
 
> anyone who knows socket programming from the scratch to help?
What do you actually want from us?

How about this
http://www.beej.us/guide/bgnet/


All times are GMT -5. The time now is 3:57 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC