mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
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:
@@ -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 */
|
||||
|
||||
|
||||
@@ -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++;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user