LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 02-07-2009, 09:21 AM   #1
kamranysf
LQ Newbie
 
Registered: Feb 2009
Posts: 1

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


Hi,
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.

Regards

/kamran
 
  


Reply

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


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


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

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