More IGMP changes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2777 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2010-07-08 00:59:51 +00:00
parent b7a09886e7
commit 53d3022e91
5 changed files with 105 additions and 4 deletions
+7 -1
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* net/uip/uip_initialize.c
*
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2010 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:
@@ -140,6 +140,12 @@ void uip_initialize(void)
#ifdef CONFIG_NET_UDP
uip_udpinit();
#endif
/* Initialize IGMP support */
#ifdef CONFIG_NET_IGMP
uip_udpinit();
#endif
}
#endif /* CONFIG_NET */
+10
View File
@@ -510,6 +510,16 @@ void uip_input(struct uip_driver_s *dev)
break;
#endif
/* Check for ICMP input */
#ifdef CONFIG_NET_IGMP
#ifndef CONFIG_NET_IPv6
case UIP_PROTO_IGMP: /* IGMP input */
uip_igmpinput(dev);
break;
#endif
#endif
default: /* Unrecognized/unsupported protocol */
#ifdef CONFIG_NET_STATISTICS
uip_stat.ip.drop++;
+4
View File
@@ -210,6 +210,10 @@ EXTERN void uip_icmpsend(struct uip_driver_s *dev, uip_ipaddr_t *destaddr);
#endif /* CONFIG_NET_ICMP */
#ifdef CONFIG_NET_IGMP
/* Defined in uip_igmpinit.c ************************************************/
EXTERN void uip_igmpinit(void);
/* Defined in uip_igmpinput.c ***********************************************/
EXTERN void uip_igmpinput(struct uip_driver_s *dev);