Lines Matching defs:sock_fd
203 if (close(ss->sock_fd)) {
207 zlog_warn("%s: failure closing ssmpingd sock_fd=%d for source %s: errno=%d: %s",
209 ss->sock_fd, source_str, e, safe_strerror(e));
225 sent = sendto(ss->sock_fd, buf, len, MSG_DONTWAIT, &to, tolen);
233 to_str, ntohs(to.sin_port), ss->sock_fd, len,
239 to_str, ntohs(to.sin_port), ss->sock_fd,
258 len = pim_socket_recvfromto(ss->sock_fd, buf, sizeof(buf),
266 __PRETTY_FUNCTION__, source_str, ss->sock_fd, errno, safe_strerror(errno));
285 ifindex, ss->sock_fd,
302 ifindex, ss->sock_fd,
321 int sock_fd;
329 sock_fd = THREAD_FD(t);
330 zassert(sock_fd == ss->sock_fd);
345 ssmpingd_sock_read, ss, ss->sock_fd);
351 int sock_fd;
363 sock_fd = ssmpingd_socket(source_addr, /* port: */ 4321, /* mTTL: */ 64);
364 if (sock_fd < 0) {
379 close(sock_fd);
383 ss->sock_fd = sock_fd;