search for: portrange_to

Displaying 1 result from an estimated 1 matches for "portrange_to".

2010 Mar 04
1
Making tftpd (hpa) firewall frienldy
...%m"); exit(EX_IOERR); } + { int x = 1; setsockopt (peer, SOL_SOCKET, SO_REUSEADDR, &x, sizeof (x)); } +#ifdef SO_REUSEPORT + { int x = 1; setsockopt (peer, SOL_SOCKET, SO_REUSEPORT , &x, sizeof (x)); } +#endif + if (pick_port_bind(peer, &myaddr, portrange_from, portrange_to) < 0) { + syslog(LOG_ERR, "bind: %m"); + exit(EX_IOERR); + } /* Set up the supplementary group access list if possible */ /* /etc/group still need to be accessible at this point */ @@ -947,10 +960,6 @@ } /* Process the request... */ - if (pick_...