Commit a705fafb authored by Joanne Hugé's avatar Joanne Hugé

WIP: drop non eCPRI packets

parent 269780c1
......@@ -640,8 +640,10 @@ static void *recv_thread(void *p) {
}
}
if(ntohl(*((uint32_t*) (rtebuf + 12))) != 0xaefe) {
uint16_t ether_type = ntohl(*((uint16_t*) (rtebuf + 12)));
if(ether_type != 0xaefe) {
drop++; drop_total++;
printf("Dropped packet: %02x%02x\n", ((uint8_t*) &ether_type)[0], ((uint8_t*) &ether_type)[1]);
continue;
}
if((pkt[i + k])->data_len != rx_rbuf.len) {
......
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