Lines Matching refs:flags
780 bool check_ipv4_addr(struct in_addr *addr, uint8_t flags)
790 if ((flags & SSS_NO_MULTICAST) && IN_MULTICAST(ntohl(addr->s_addr))) {
793 } else if ((flags & SSS_NO_LOOPBACK)
797 } else if ((flags & SSS_NO_LINKLOCAL)
802 } else if ((flags & SSS_NO_BROADCAST)
811 bool check_ipv6_addr(struct in6_addr *addr, uint8_t flags)
821 if ((flags & SSS_NO_LINKLOCAL) && IN6_IS_ADDR_LINKLOCAL(addr)) {
824 } else if ((flags & SSS_NO_LOOPBACK) && IN6_IS_ADDR_LOOPBACK(addr)) {
827 } else if ((flags & SSS_NO_MULTICAST) && IN6_IS_ADDR_MULTICAST(addr)) {
911 int flags;
914 flags = fcntl(fd, F_GETFL, 0);
915 if (flags == -1) {
922 if (fcntl(fd, F_SETFL, flags | O_NONBLOCK) == -1) {