URL
https://opencores.org/ocsvn/amber/amber/trunk
Subversion Repositories amber
Compare Revisions
- This comparison shows the changes necessary to convert path
/amber/trunk
- from Rev 84 to Rev 85
- ↔ Reverse comparison
Rev 84 → Rev 85
/sw/boot-loader-ethmac/packet.c
237,19 → 237,12
{ |
int i; |
|
rx_packet->dst_mac[0] = buf[0]; |
rx_packet->dst_mac[1] = buf[1]; |
rx_packet->dst_mac[1] = buf[2]; |
rx_packet->dst_mac[3] = buf[3]; |
rx_packet->dst_mac[4] = buf[4]; |
rx_packet->dst_mac[5] = buf[5]; |
for (i=0;i<6;i++) |
rx_packet->dst_mac[i] = buf[i]; |
|
rx_packet->src_mac[0] = buf[6]; |
rx_packet->src_mac[1] = buf[7]; |
rx_packet->src_mac[2] = buf[8]; |
rx_packet->src_mac[3] = buf[9]; |
rx_packet->src_mac[4] = buf[10]; |
rx_packet->src_mac[5] = buf[11]; |
for (i=0;i<6;i++) |
rx_packet->src_mac[i] = buf[i+6]; |
|
rx_packet->eth_type = (buf[12]<<8) + buf[13]; |
|
|
258,7 → 251,6
parse_arp_packet(&buf[14]); |
} |
|
|
/* Internet Protocol */ |
else if (rx_packet->eth_type == 0x0800){ |
parse_ip_packet(&buf[14], rx_packet); |