Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 7th, 2007, 4:55 AM   #1
majestyelias
Newbie
 
Join Date: Dec 2007
Posts: 5
Rep Power: 0 majestyelias is on a distinguished road
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
majestyelias is offline   Reply With Quote
Old Dec 7th, 2007, 5:24 AM   #2
Salem
Programmer
 
Join Date: Nov 2007
Posts: 33
Rep Power: 0 Salem is on a distinguished road
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.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Salem is offline   Reply With Quote
Old Dec 7th, 2007, 1:26 PM   #3
majestyelias
Newbie
 
Join Date: Dec 2007
Posts: 5
Rep Power: 0 majestyelias is on a distinguished road
Re: Packet filtering

Quote:
Originally Posted by Salem View Post
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?
majestyelias is offline   Reply With Quote
Old Dec 7th, 2007, 2:00 PM   #4
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
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.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Dec 7th, 2007, 2:07 PM   #5
majestyelias
Newbie
 
Join Date: Dec 2007
Posts: 5
Rep Power: 0 majestyelias is on a distinguished road
Re: Packet filtering

Quote:
Originally Posted by Dameon View Post
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.
majestyelias is offline   Reply With Quote
Old Dec 7th, 2007, 2:11 PM   #6
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,886
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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?
Sane is online now   Reply With Quote
Old Dec 7th, 2007, 2:35 PM   #7
majestyelias
Newbie
 
Join Date: Dec 2007
Posts: 5
Rep Power: 0 majestyelias is on a distinguished road
Re: Packet filtering

Quote:
Originally Posted by Sane View Post
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.
majestyelias is offline   Reply With Quote
Old Dec 7th, 2007, 3:41 PM   #8
andro
Professional Programmer
 
Join Date: Oct 2005
Location: California
Posts: 312
Rep Power: 3 andro is on a distinguished road
Send a message via AIM to andro
Re: Packet filtering

http://sourceforge.net/projects/libpcap/
__________________
http://www.kevinherron.com/
andro is offline   Reply With Quote
Old Dec 7th, 2007, 7:51 PM   #9
majestyelias
Newbie
 
Join Date: Dec 2007
Posts: 5
Rep Power: 0 majestyelias is on a distinguished road
Re: Packet filtering

Quote:
Originally Posted by andro View Post
anyone who knows socket programming from the scratch to help?
majestyelias is offline   Reply With Quote
Old Dec 8th, 2007, 1:13 AM   #10
Salem
Programmer
 
Join Date: Nov 2007
Posts: 33
Rep Power: 0 Salem is on a distinguished road
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/
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Salem is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Sniffer - extracting payload from TCP header Brent C 2 Sep 22nd, 2007 11:28 PM
Packet Sniffer Mad_guy Show Off Your Open Source Projects 0 Apr 16th, 2007 10:16 PM
Trying to make a simple packet sniffer Intimidat0r C 3 Sep 26th, 2006 9:25 AM
HELP! "field has incomplete type" TaviO! C 6 Apr 24th, 2006 4:05 PM
filtering OLE objects killcity44 Visual Basic 1 May 23rd, 2005 12:08 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:37 PM.

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