sin6_addr.u doesn't exist on Mac, and it seems a bit kludgey the way you're doing this.  Doesn't the sscanf and inet_pton on lines 5311-5312 accomplish what you're trying to do?