[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r7959 - usrp2/trunk/firmware/apps
From: |
eb |
Subject: |
[Commit-gnuradio] r7959 - usrp2/trunk/firmware/apps |
Date: |
Fri, 7 Mar 2008 13:51:45 -0700 (MST) |
Author: eb
Date: 2008-03-07 13:51:44 -0700 (Fri, 07 Mar 2008)
New Revision: 7959
Modified:
usrp2/trunk/firmware/apps/app_common.c
Log:
enable seqno checking in f/w
Modified: usrp2/trunk/firmware/apps/app_common.c
===================================================================
--- usrp2/trunk/firmware/apps/app_common.c 2008-03-07 20:39:54 UTC (rev
7958)
+++ usrp2/trunk/firmware/apps/app_common.c 2008-03-07 20:51:44 UTC (rev
7959)
@@ -30,6 +30,9 @@
volatile bool link_is_up = false; // eth handler sets this
+static unsigned char exp_seqno = 0;
+
+
static void
burn_mac_addr(const op_burn_mac_addr_t *p)
{
@@ -119,7 +122,6 @@
bool
eth_pkt_inspector(dbsm_t *sm, int bufno)
{
- static unsigned char exp_seqno = 0;
u2_eth_packet_t *pkt = (u2_eth_packet_t *) buffer_ram(bufno);
size_t byte_len = (buffer_pool_status->last_line[bufno] - 3) * 4;
@@ -140,8 +142,7 @@
case 0:
default:
- /*
- if((pkt->thdr.seqno) == exp_seqno) {
+ if((pkt->thdr.seqno) == exp_seqno){
exp_seqno++;
}
else {
@@ -149,7 +150,6 @@
printf("S%d %d ",exp_seqno,pkt->thdr.seqno);
exp_seqno = pkt->thdr.seqno + 1;
}
- */
return false; // pass it on to Tx DSP
break;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r7959 - usrp2/trunk/firmware/apps,
eb <=