Lines Matching defs:listen
42 void tftp_request(struct listener *listen, time_t now)
65 int check_dest = !option_bool(OPT_NOWILD) || listen->family == AF_INET6;
97 if ((len = recvmsg(listen->tftpfd, &msg, 0)) < 2)
103 if (listen->iface)
105 addr = listen->iface->addr;
106 mtu = listen->iface->mtu;
107 name = listen->iface->name;
114 if (getsockname(listen->tftpfd, (struct sockaddr *)&addr, &tcp_len) == -1)
125 addr.sa.sa_family = listen->family;
128 if (listen->family == AF_INET)
142 if (listen->family == AF_INET)
158 if (listen->family == AF_INET)
176 if (listen->family == AF_INET6)
193 if (!indextoname(listen->tftpfd, if_index, namebuff))
201 if (listen->family == AF_INET6)
218 if (!iface_check(listen->family, &addra, name, NULL))
222 if (!loopback_exception(listen->tftpfd, listen->family, &addra, name) &&
223 !label_exception(if_index, listen->family, &addra) )
236 if (ioctl(listen->tftpfd, SIOCGIFMTU, &ifr) != -1)
248 if (listen->family == AF_INET)
270 if ((transfer->sockfd = socket(listen->family, SOCK_DGRAM, 0)) == -1)
301 if (listen->family == AF_INET)