diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-08 14:42:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-08 14:42:36 +0000 |
commit | 7507485356f2bdf02f95194438c4fafc7aa7db13 (patch) | |
tree | bdcafaeda3addd9f5c24f43aa692c3cb0d29f7e5 /nuttx/net/uip/uip_udpinput.c | |
parent | 99c28e14199f709222988dbb7e8c589b48a94206 (diff) | |
download | px4-nuttx-7507485356f2bdf02f95194438c4fafc7aa7db13.tar.gz px4-nuttx-7507485356f2bdf02f95194438c4fafc7aa7db13.tar.bz2 px4-nuttx-7507485356f2bdf02f95194438c4fafc7aa7db13.zip |
Changes to work around bug in ZDS compiler
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1575 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/uip/uip_udpinput.c')
-rw-r--r-- | nuttx/net/uip/uip_udpinput.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/net/uip/uip_udpinput.c b/nuttx/net/uip/uip_udpinput.c index b9003cd86..7df58bd9f 100644 --- a/nuttx/net/uip/uip_udpinput.c +++ b/nuttx/net/uip/uip_udpinput.c @@ -2,7 +2,7 @@ * net/uip/uip_udpinput.c * Handling incoming UDP input * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Adapted for NuttX from logic in uIP which also has a BSD-like license: @@ -96,6 +96,7 @@ void uip_udpinput(struct uip_driver_s *dev) { struct uip_udp_conn *conn; + struct uip_udpip_hdr *pbuf = UDPBUF; /* UDP processing is really just a hack. We don't do anything to the UDP/IP * headers, but let the UDP application do all the hard work. If the @@ -105,7 +106,7 @@ void uip_udpinput(struct uip_driver_s *dev) dev->d_len -= UIP_IPUDPH_LEN; #ifdef CONFIG_NET_UDP_CHECKSUMS dev->d_appdata = &dev->d_buf[UIP_LLH_LEN + UIP_IPUDPH_LEN]; - if (UDPBUF->udpchksum != 0 && uip_udpchksum(dev) != 0xffff) + if (pudpbuf->udpchksum != 0 && uip_udpchksum(dev) != 0xffff) { #ifdef CONFIG_NET_STATISTICS uip_stat.udp.drop++; @@ -119,7 +120,7 @@ void uip_udpinput(struct uip_driver_s *dev) { /* Demultiplex this UDP packet between the UDP "connections". */ - conn = uip_udpactive(UDPBUF); + conn = uip_udpactive(pudpbuf); if (conn) { /* Setup for the application callback */ |