Lines Matching refs:setsockopt
234 if (setsockopt(s, SOL_SOCKET, SO_BROADCAST, &on, sizeof (on)) < 0) {
235 syslog(LOG_ERR, "main: setsockopt SO_BROADCAST: %m");
458 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_IF,
462 "onalrm: setsockopt IP_MULTICAST_IF: %m");
516 if (setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq,
519 "configure: setsockopt IP_ADD_MEMBERSHIP: %m");
523 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl,
526 "configure: setsockopt IP_MULTICAST_TTL: %m");
629 if (setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq,
633 "setsockopt IP_ADD_MEMBERSHIP: %m");