diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-16 13:01:08 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-16 13:01:08 -0600 |
commit | 403cc094e22feb6565ded93f8346a8446bf4ddbb (patch) | |
tree | 7b2706373a3d000f9dd145e7c14547e6106de25d /nuttx/net/igmp/igmp_input.c | |
parent | 1cab7bb6d184c0bba4889bf6eac7a863f0f242c7 (diff) | |
download | px4-nuttx-403cc094e22feb6565ded93f8346a8446bf4ddbb.tar.gz px4-nuttx-403cc094e22feb6565ded93f8346a8446bf4ddbb.tar.bz2 px4-nuttx-403cc094e22feb6565ded93f8346a8446bf4ddbb.zip |
Networking: Replace all references to the macros net_ipaddr_copy, net_ipaddr_hdrcopy, net_ipaddr_cmp, net_ipaddr_hdrcmp, and net_ipaddr_maskcmp with the appropriate IPv4 or IPv6 version of the macro (such as net_ipv4addr_copy). The goal is to support both IPv4 and IPv6 simultaneously. This requires that the macros be distinct and not conditionally defined to one on or the other.
Diffstat (limited to 'nuttx/net/igmp/igmp_input.c')
-rw-r--r-- | nuttx/net/igmp/igmp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/net/igmp/igmp_input.c b/nuttx/net/igmp/igmp_input.c index 5024c472b..f2f7363d7 100644 --- a/nuttx/net/igmp/igmp_input.c +++ b/nuttx/net/igmp/igmp_input.c @@ -165,7 +165,7 @@ void igmp_input(struct net_driver_s *dev) /* Check if the query was sent to all systems */ - if (net_ipaddr_cmp(destipaddr, g_ipv4_allsystems)) + if (net_ipv4addr_cmp(destipaddr, g_ipv4_allsystems)) { /* Yes... Now check the if this this is a general or a group * specific query. @@ -206,7 +206,7 @@ void igmp_input(struct net_driver_s *dev) { /* Skip over the all systems group entry */ - if (!net_ipaddr_cmp(member->grpaddr, g_ipv4_allsystems)) + if (!net_ipv4addr_cmp(member->grpaddr, g_ipv4_allsystems)) { ticks = net_dsec2tick((int)IGMPBUF->maxresp); if (IS_IDLEMEMBER(member->flags) || |