Networking Forums

Networking Forums > Computer Networking > Linux Networking > Ethernet device in char mode?

Reply
Thread Tools Display Modes

Ethernet device in char mode?

 
 
Jeff Ward
Guest
Posts: n/a

 
      09-29-2004, 04:05 PM
I am looking for a way to put an ethernet device in a sort of
"character device" mode where I can simply read and write to it
without going through the TCP/IP stack. I am trying to test some
network hardware and right now I only care that what comes out of it
is identical to what went in to it. Does anyone have any ideas?

-Jeff Ward
 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      10-08-2004, 08:40 AM
Jeff Ward wrote:
> I am looking for a way to put an ethernet device in a sort of
> "character device" mode where I can simply read and write to it
> without going through the TCP/IP stack. I am trying to test some
> network hardware and right now I only care that what comes out of it
> is identical to what went in to it. Does anyone have any ideas?
>
> -Jeff Ward


There is no single character mode in Ethernet - there is a minimum
packet length needed to make the collision detection to work.

The lowest-level access to the Ethernet interface is to
use the raw sockets, where you can specify each byte to
transfer separately. To make the other end of the connection
to respond, you need to provide the 14 byte Ethernet header
in the proper format (6 bytes destination MAC, 6 bytes source
MAC and 2 bytes type / length).

HTH

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: device to wirelessly simulate Ethernet? Yousuf Khan Windows Networking 17 02-04-2009 08:28 PM
Wi-Fi Device Through the Ethernet Connection J&D Schnoor Wireless Internet 11 08-20-2007 12:44 AM
Bind service to a particular ethernet device Ignacio Garcia Linux Networking 4 09-18-2005 10:08 PM
How do I refresh the Ethernet device entry in XP's Net Connections? Lars Broadband 3 06-18-2005 11:59 PM
Any device to connect home wired Ethernet to outside 802.11?? MMM42 Wireless Internet 8 11-10-2004 04:59 PM



1 2 3 4 5 6 7 8 9 10 11