Commit 723a208f authored by Joanne Hugé's avatar Joanne Hugé

WIP: drop non eCPRI packets

parent a705fafb
...@@ -640,7 +640,7 @@ static void *recv_thread(void *p) { ...@@ -640,7 +640,7 @@ static void *recv_thread(void *p) {
} }
} }
uint16_t ether_type = ntohl(*((uint16_t*) (rtebuf + 12))); uint16_t ether_type = ntohs(*((uint16_t*) (rtebuf + 12)));
if(ether_type != 0xaefe) { if(ether_type != 0xaefe) {
drop++; drop_total++; drop++; drop_total++;
printf("Dropped packet: %02x%02x\n", ((uint8_t*) &ether_type)[0], ((uint8_t*) &ether_type)[1]); printf("Dropped packet: %02x%02x\n", ((uint8_t*) &ether_type)[0], ((uint8_t*) &ether_type)[1]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment