diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-07-11 15:17:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-07-11 15:17:11 +0000 |
commit | 7a7b211c40caa734799e2973b62d6f582071a051 (patch) | |
tree | 3b9f2a939d846761f4d35034eec43749dd313732 /nuttx/net/uip/uip_arp.c | |
parent | 045b0affc951ce0a37ddfe3dae1b212fcd87bd81 (diff) | |
download | nuttx-7a7b211c40caa734799e2973b62d6f582071a051.tar.gz nuttx-7a7b211c40caa734799e2973b62d6f582071a051.tar.bz2 nuttx-7a7b211c40caa734799e2973b62d6f582071a051.zip |
Add support for multicast MAC addresses
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2784 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/uip/uip_arp.c')
-rw-r--r-- | nuttx/net/uip/uip_arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/net/uip/uip_arp.c b/nuttx/net/uip/uip_arp.c index 6073f252c..b0e3e3fe7 100644 --- a/nuttx/net/uip/uip_arp.c +++ b/nuttx/net/uip/uip_arp.c @@ -140,7 +140,7 @@ static const uint16_t g_broadcast_ipaddr[2] = {0xffff, 0xffff}; * The following is the first three octects of the IGMP address: */ -#if defined(CONFIG_NET_MULTICAST) && !defined(CONFIG_NET_IPv6) +#if defined(CONFIG_NET_IGMP) && !defined(CONFIG_NET_IPv6) static const uint8_t g_multicast_ethaddr[3] = {0x01, 0x00, 0x5e}; #endif @@ -306,7 +306,7 @@ void uip_arp_out(struct uip_driver_s *dev) { memcpy(peth->dest, g_broadcast_ethaddr.ether_addr_octet, ETHER_ADDR_LEN); } -#if defined(CONFIG_NET_MULTICAST) && !defined(CONFIG_NET_IPv6) +#if defined(CONFIG_NET_IGMP) && !defined(CONFIG_NET_IPv6) /* Check if the destination address is a multicast address * * - IPv4: multicast addresses lie in the class D group -- The address range |