CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

destination MAC address on CCS Ethernet Evalutaion Board

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
eric



Joined: 16 Sep 2003
Posts: 21

View user's profile Send private message

destination MAC address on CCS Ethernet Evalutaion Board
PostPosted: Mon Jan 22, 2007 10:40 pm     Reply with quote

I'm using the CCS ENC28J proto board. Not sure how the dest mac address is set.

Ethereal indicates that it is currently 39:01:01:04:02:7b?
src 01:02:03:04:05:06 -> dst 39:01:01:04:02:7b

I would like to set dest address to ff:ff:ff:ff:ff:ff
- or a known dest mac address on my network.

Gone through most of the code and cannot quite figure out how to hardwire the destination mac address when UDPTx'ing.

you would think I could follow how ARP.c assign it (although I am not currently using ARP) but, no I do not quite get it.

Cheers,
Eric
eric



Joined: 16 Sep 2003
Posts: 21

View user's profile Send private message

ethernet header.dest
PostPosted: Tue Jan 23, 2007 1:15 am     Reply with quote

OK, problem resolved itself soon after posting Smile

I can hardwire it in
In MacPutheader(

header.dest.v[0]=0xff;
header.dest.v[1]=0xff;
header.dest.v[2]=0xff;
header.dest.v[3]=0xff;
header.dest.v[4]=0xff;
header.dest.v[5]=0xff;

header.source.v[0]=MY_MAC_BYTE1;
header.source.v[1]=MY_MAC_BYTE2;
header.source.v[2]=MY_MAC_BYTE3;
header.source.v[3]=MY_MAC_BYTE4;
header.source.v[4]=MY_MAC_BYTE5;
header.source.v[5]=MY_MAC_BYTE6;
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group