Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-07-2009, 10:21 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Red face Unable to send packet to the destination

I am working on socket programming and I can successfully receive packets. What I need to do is to get the dest,src MACs and then assigning that MAC to the sockaddr_ll type destination Address This address, I am providign in the sendto function but I am not getting it properly. My packet goes to the network as I checked with wireshark but the destination address is not correct.

Appreciate if anyone knows how to send a raw ethernet packet as it is captured.




ethernet, packet, raw, sockets

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get destination address of UDP packet? andreyk Programming 7 08-01-2013 10:41 AM
IP layer send packet shuperb Linux - Kernel 2 06-28-2008 12:19 AM
How can I send a packet to mac address ... tobiasw Linux - Networking 8 10-22-2006 05:54 PM
Per-Packet or Per Destination? caps_phisto Linux - Networking 1 09-30-2006 09:16 AM
send packet at network Jamesminh Programming 1 10-01-2004 11:04 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration