lkml.org 
[lkml]   [1998]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Char or Block Dirver?
> 	So what sort of a device driver should i go for?
> What I feel is that I can't write it as a network device driver.
> In Linux , all the i/f for n/w device driver goes thru
> tcp/ip layers and finally to the card. i want to write
> raw data to the card without the TCP/IP headers for testing
> (Otherwise that would have been the ideal option since this
> is a n/w card).

I use SOCK_PACKET to send/receive nice raw packets via my network driver.
This is in 2.0.x; check out net/ipv4/packet.c. Your data will go from
a user space socket right to dev_queue_xmit.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:3.835 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site