Home | History | Annotate | Download | only in src

Lines Matching defs:tftpfd

310   l->tftpfd = -1;
324 int tcpfd = -1, fd = -1, tftpfd = -1;
364 if ((tftpfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1)
367 if (!fix_fd(tftpfd) ||
369 setsockopt(tftpfd, SOL_IP, IP_PKTINFO, &opt, sizeof(opt)) == -1 ||
371 setsockopt(tftpfd, IPPROTO_IP, IP_RECVDSTADDR, &opt, sizeof(opt)) == -1 ||
372 setsockopt(tftpfd, IPPROTO_IP, IP_RECVIF, &opt, sizeof(opt)) == -1 ||
374 bind(tftpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1)
383 l->tftpfd = tftpfd;
404 new->tftpfd = -1;
463 if ((new->tftpfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1 ||
464 setsockopt(new->tftpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 ||
465 !fix_fd(new->tftpfd) ||
466 bind(new->tftpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1)