Searched refs:syncfd (Results 1 - 7 of 7) sorted by relevance
/openbsd-current/usr.sbin/dhcpd/ |
H A D | sync.c | 49 int syncfd = -1; variable 153 syncfd = socket(AF_INET, SOCK_DGRAM, 0); 154 if (syncfd == -1) 157 if (setsockopt(syncfd, SOL_SOCKET, SO_REUSEADDR, &one, 170 if (bind(syncfd, (struct sockaddr *)&sync_out, sizeof(sync_out)) == -1) 175 return (syncfd); 191 if (ioctl(syncfd, SIOCGIFADDR, &ifr) == -1) 206 if (setsockopt(syncfd, IPPROTO_IP, 212 if (setsockopt(syncfd, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, 215 setsockopt(syncfd, IPPROTO_I [all...] |
H A D | sync.h | 70 extern int syncfd;
|
H A D | dhcpd.c | 207 syncfd = sync_init(sync_iface, sync_baddr, sync_port); 208 if (syncfd == -1)
|
H A D | dispatch.c | 70 extern int syncfd; 312 if (syncfd != -1) 366 if (syncfd != -1) { 368 fds[i].fd = syncfd; 395 if ((syncfd != -1) && (fds[i].revents & (POLLIN | POLLHUP)))
|
/openbsd-current/libexec/spamd/ |
H A D | sync.c | 51 int syncfd; variable 156 syncfd = socket(AF_INET, SOCK_DGRAM, 0); 157 if (syncfd == -1) 160 if (setsockopt(syncfd, SOL_SOCKET, SO_REUSEADDR, &one, 173 if (bind(syncfd, (struct sockaddr *)&sync_out, sizeof(sync_out)) == -1) 178 return (syncfd); 194 if (ioctl(syncfd, SIOCGIFADDR, &ifr) == -1) 209 if (setsockopt(syncfd, IPPROTO_IP, 215 if (setsockopt(syncfd, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, 219 setsockopt(syncfd, IPPROTO_I [all...] |
H A D | spamd.c | 1234 int ch, smtplisten, conflisten, syncfd = -1, i, one = 1; local 1373 syncfd = sync_init(sync_iface, sync_baddr, sync_port); 1374 if (syncfd == -1) 1558 pfd[PFD_SYNCFD].fd = syncfd;
|
/openbsd-current/libexec/spamlogd/ |
H A D | spamlogd.c | 387 int syncfd = 0; local 444 syncfd = sync_init(sync_iface, sync_baddr, sync_port); 445 if (syncfd == -1)
|
Completed in 103 milliseconds