Bjorn Leffler has uploaded this change for review.

View Change

Pass a struct in6_addr to IN6_IS_ADDR_UNSPECIFIED

is_inaddrany() passes sin6_addr.s6_addr, the byte array. glibc's macro casts
its argument to uint32_t * so either form works there, but implementations
that treat it as a struct in6_addr * reject the array.

RFC 2553 specifies the argument as a struct in6_addr *; passing &sin6_addr is
correct everywhere and generates the same code on glibc.

Change-Id: Id153d99297c43aeefb18741485339df1eb950dfc
Signed-off-by: Bjorn Leffler <github@leffler.org>
---
M src/support/ip_utils.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/68/1246768/1

To view, visit change 1246768. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Id153d99297c43aeefb18741485339df1eb950dfc
Gerrit-Change-Number: 1246768
Gerrit-PatchSet: 1
Gerrit-Owner: Bjorn Leffler <github@leffler.org>