Lines Matching refs:syncfd
51 int syncfd; variable
156 syncfd = socket(AF_INET, SOCK_DGRAM, 0); in sync_init()
157 if (syncfd == -1) in sync_init()
160 if (setsockopt(syncfd, SOL_SOCKET, SO_REUSEADDR, &one, in sync_init()
173 if (bind(syncfd, (struct sockaddr *)&sync_out, sizeof(sync_out)) == -1) in sync_init()
178 return (syncfd); in sync_init()
194 if (ioctl(syncfd, SIOCGIFADDR, &ifr) == -1) in sync_init()
209 if (setsockopt(syncfd, IPPROTO_IP, in sync_init()
215 if (setsockopt(syncfd, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, in sync_init()
219 setsockopt(syncfd, IPPROTO_IP, in sync_init()
230 return (syncfd); in sync_init()
233 close(syncfd); in sync_init()
259 if ((len = recvfrom(syncfd, buf, sizeof(buf), 0, in sync_recv()
404 sendmsg(syncfd, &msg, 0); in sync_send()
413 sendmsg(syncfd, &msg, 0); in sync_send()