Commit 269780c1 authored by Joanne Hugé's avatar Joanne Hugé

WIP: drop non eCPRI packets

parent 99fdfd24
......@@ -640,6 +640,10 @@ static void *recv_thread(void *p) {
}
}
if(ntohl(*((uint32_t*) (rtebuf + 12))) != 0xaefe) {
drop++; drop_total++;
continue;
}
if((pkt[i + k])->data_len != rx_rbuf.len) {
for(int j = 0; j < pkt[i + k]->data_len; j++) {
printf("%02x", rtebuf[j]);
......@@ -647,10 +651,6 @@ static void *recv_thread(void *p) {
printf("\n");
log_error("RECV", "Packet data length (%d) != RX buffer len (%d)", pkt[i + k]->data_len, rx_rbuf.len);
}
if(ntohl(*((uint32_t*) (rtebuf + 12))) != 0xaefe) {
drop++; drop_total++;
continue;
}
memcpy(buf + i * rx_rbuf.len, rtebuf, rx_rbuf.len);
#else
//memcpy(buf + i * rx_rbuf.len, pkt_frame_full, 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