Ethernet sending data

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ethernet sending data

3,375 Views
UDP
Contributor I
Hello
 
I am using the ethernet.
I am using the "fec_send" function that in the "fec.c" file.
When i called to this function it send the data twice . why is that?
 
The function:
 
static int fec_send (NIF *nif, NBUF *pNbuf)
{
 /* If data length of the frame is too long or short, reject */
 if ((pNbuf->length > nif->mtu) || (pNbuf->length <= 0))
  return FALSE;
 /* Adjust the length by the ethernet header size */
 //pNbuf->length += ETH_HDR_SIZE;
 /* Set Frame ready for transmit */
 pNbuf->status |= TX_BD_R;
 /* Mark the buffer as not in use */
 nif->tx_free(pNbuf);
 /* Indicate that there has been a transmit buffer produced */
 MCF_FEC_TDAR = 1;
 /* The hardware will mark the buffer as empty once it's transmitted */
 nif->f_tx++;
 return TRUE;
}
 
Thanks
 
 
Labels (1)
0 Kudos
3 Replies

462 Views
MattS
Contributor I
I have found the same problem.  Have you found a solution?
 
Matt
0 Kudos

462 Views
J_karlsson
Contributor I
Hi, I'm also experiencing this problem, has anyone a solution to this problem?
0 Kudos

462 Views
DrSeuss
Contributor I
I have noticed in the past that with wireless network routers that this happens.
Same hardware / software on a different (non-wireless) router and this does not happen.
 
I have seen this on both the 52235 and the NE64.
 
No one (stack vendors) have ever been able to explain why this happens. I think it to be router related.
 
0 Kudos