Networking Forums

Networking Forums > Computer Networking > Linux Networking > send data packets to driver hard_xmit function

Reply
Thread Tools Display Modes

send data packets to driver hard_xmit function

 
 
sara
Guest
Posts: n/a

 
      12-28-2004, 01:09 PM
Hi everybody,
Iam writing PCI device driver for my custom board that does bus
master DMA data transfer.
I registered my device as network device using
register_netdev(); and brought up using $ ifconfig dev0 up with IP
address.I can ping to my device interface dev0.

Now, what I need is that I need to pass some user data from
application into my driver's netdev->hard_start_xmit function through
socket interface. The dev_hard_xmit(struct sk_buff *skb, struct
net_device *netdev) function has to receive skb_data from application
and fill the DMA buffer.once the DMA buffer is full I need to transfer
it to device.
DMA transfer through IOCTL works well.
Iam not clear in passing user data through socket interface. I
know that I have to create socket, bind socket to my device(IP)
interface. when I try to send data using sendto() function , it doesn't
works well. i.e it doesn't invoke my drivers hard_start_xmit function.
Any answers/suggestions would be welcome.

thanks
sara

 
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
when send() function returns? Sean Linux Networking 8 06-22-2006 09:17 PM
unable to send packets kernel.lover Linux Networking 0 02-05-2005 12:19 PM
How can I send and recieve packets of data using TAPI to_rachit@rediffmail.com Windows Networking 0 01-30-2004 04:58 PM
tcp send bigger data faster then small data Stephan Absmeier Linux Networking 20 10-29-2003 02:40 PM
Send custom TCP packets Ishwar Linux Networking 3 07-15-2003 10:51 PM



1 2 3 4 5 6 7 8 9 10 11