C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 09-06-2004, 02:25 PM   #1
Its not rocket science
 
vasanth's Avatar
 
Join Date: Jan 2002
Posts: 1,686
Raw Control

How can I program directly at the MAC layer....... I want to build a packet monitoring utility.... considering that the system is connected to the hub how can I do this... are there any API's to do this...

please advice...
__________________
http://www.geekpursuit.com
vasanth is offline   Reply With Quote
Old 09-06-2004, 03:27 PM   #2
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,693
Gee, 1500 posts
Still no idea what OS/Compiler you want to achieve this magic on.

Have you considered looking at the source code for ethereal?
__________________
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 09-06-2004, 04:47 PM   #3
Its not rocket science
 
vasanth's Avatar
 
Join Date: Jan 2002
Posts: 1,686
oops sorry...
GCC On Linux and windows using cygwin..... I think i will check ethereal..
__________________
http://www.geekpursuit.com
vasanth is offline   Reply With Quote
Old 09-06-2004, 06:14 PM   #4
Registered User
 
Join Date: Sep 2004
Location: California
Posts: 3,020
The source code to Ethereal wont help you much, because Ethereal uses libpcap on Linux (or winpcap on windows) to do the packet capturing. You'd be better off just using libpcap to monitor packets.
bithub is offline   Reply With Quote
Old 09-06-2004, 06:48 PM   #5
Its not rocket science
 
vasanth's Avatar
 
Join Date: Jan 2002
Posts: 1,686
thax for the info...
__________________
http://www.geekpursuit.com
vasanth is offline   Reply With Quote
Old 09-07-2004, 11:18 AM   #6
and the hat of marbles
 
Sang-drax's Avatar
 
Join Date: May 2002
Location: Lund, Sweden
Posts: 2,041
If you manage to compile and run ethereal on Cygwin, please let me know.
I've tried and failed (I don't know any Unix).
__________________
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
Sang-drax is offline   Reply With Quote
Old 09-07-2004, 12:08 PM   #7
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,693
> If you manage to compile and run ethereal on Cygwin, please let me know.
Since ethereal already has a windows port, isn't this a bit moot?
__________________
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 09-08-2004, 09:15 AM   #8
and the hat of marbles
 
Sang-drax's Avatar
 
Join Date: May 2002
Location: Lund, Sweden
Posts: 2,041
Quote:
Originally Posted by Salem
> If you manage to compile and run ethereal on Cygwin, please let me know.
Since ethereal already has a windows port, isn't this a bit moot?
Yes, I meant ettercap, not ethereal.
__________________
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
Sang-drax is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Raw serial control in Linux crepincdotcom Networking/Device Communication 2 09-12-2008 12:17 PM
(Multiline) Edit Control Limit P4R4N01D Windows Programming 9 05-17-2008 11:56 AM
Button handler Nephiroth Windows Programming 8 03-12-2006 06:23 AM
very weird .h problem royuco77 C++ Programming 1 09-11-2005 07:55 AM
Tab Controls - API -KEN- Windows Programming 7 06-02-2002 09:44 AM


All times are GMT -6. The time now is 08:02 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22