mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Update PIC32 Ethernet driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4469 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
* net/uip/uip_icmpinput.c
|
||||
* Handling incoming ICMP/ICMP6 input
|
||||
*
|
||||
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Copyright (C) 2007-2009, 2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Adapted for NuttX from logic in uIP which also has a BSD-like license:
|
||||
*
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/****************************************************************************
|
||||
* net/uip/uip_icmpping.c
|
||||
*
|
||||
* Copyright (C) 2008-2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Copyright (C) 2008-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -214,7 +214,7 @@ static uint16_t ping_interrupt(struct uip_driver_s *dev, void *conn,
|
||||
if (dev->d_sndlen <= 0 && /* Packet available */
|
||||
(flags & UIP_NEWDATA) == 0 && /* No incoming data */
|
||||
!pstate->png_sent) /* Request not sent */
|
||||
{
|
||||
{
|
||||
struct uip_icmpip_hdr *picmp = ICMPBUF;
|
||||
|
||||
/* We can send the ECHO request now.
|
||||
@@ -243,7 +243,8 @@ static uint16_t ping_interrupt(struct uip_driver_s *dev, void *conn,
|
||||
*/
|
||||
|
||||
nlldbg("Send ECHO request: seqno=%d\n", pstate->png_seqno);
|
||||
dev->d_sndlen= pstate->png_datlen + 4;
|
||||
|
||||
dev->d_sndlen = pstate->png_datlen + 4;
|
||||
uip_icmpsend(dev, &pstate->png_addr);
|
||||
pstate->png_sent = true;
|
||||
return flags;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/****************************************************************************
|
||||
* net/uip/uip_icmpsend.c
|
||||
*
|
||||
* Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Copyright (C) 2008-2010, 2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
||||
@@ -161,6 +161,7 @@ static uint8_t uip_reass(void)
|
||||
uip_reassflags = 0;
|
||||
|
||||
/* Clear the bitmap. */
|
||||
|
||||
memset(uip_reassbitmap, 0, sizeof(uip_reassbitmap));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user