Dear Manoj,
I tried executing the the code only for transmitter out of the two. Pls tell me what i understood is right or nt.
While creating packet in function, create_packet(8 rows, 16 columns) ,
u have created a array (2 rows),
in the first row -- where in 0 to 5 you have inserted data 0xFFh.
in next 6 to 11 bits you have inserted the EMAC address.
and from 11 to 16 you r writing data 2.
in the second row-- where in 0 to 7 (if i am nt wrong 'j' will vary from 0 to max 7) you have inserted data2.
pls help me understand, which of these fields are related to data (from where exactly u r fetching the data) ??
At the PC end i am trying to sniff data coming from MAC address- 78:2B:CB:AB:63:6D but i am nt getting anything.
where am i going wrong???
inserting the code create_function() for reference.
void create_packet(){ int i,j; packet.packet_length = 0; for(j=0;j<6;j++) { packet.buff[0].buffer[j]=0xff; } for(j=0;j<6;j++) { packet.buff[0].buffer[j+6]=emacAddress[j]; } packet.buff[0].buffer_length = 150; packet.packet_length += packet.buff[0].buffer_length; for(j=0;j<packet.buff[0].buffer_length;j++) { packet.buff[0].buffer[j+11] = 2; } for (i=1;i<8;i++) { packet.buff[i].buffer_length = 150; packet.packet_length += packet.buff[i].buffer_length; for(j=0;j<packet.buff[i].buffer_length;j++) { packet.buff[i].buffer[j] = 2; } }} |
Kindly help.
Attaching the code that u sent me for ref.
Regards,
Manmesha