Lines Matching defs:lr
526 ap_listen_rec *lr;
542 for (lr = ap_listeners; lr; previous = lr, lr = lr->next) {
543 if (lr->active) {
564 if (lr->next != NULL
565 && IS_INADDR_ANY(lr->bind_addr)
566 && lr->bind_addr->port == lr->next->bind_addr->port
567 && IS_IN6ADDR_ANY(lr->next->bind_addr)) {
568 /* Exchange lr and lr->next */
569 next = lr->next;
570 lr->next = next->next;
571 next->next = lr;
578 lr = next;
587 if (IS_INADDR_ANY(lr->bind_addr) && previous) {
588 for (cur = ap_listeners; cur != lr; cur = cur->next) {
589 if (lr->bind_addr->port == cur->bind_addr->port
596 previous->next = lr->next;
597 lr = previous; /* maintain current value of previous after
609 if (make_sock(pool, lr, 1) == APR_SUCCESS) {
619 if (lr->next != NULL
620 && IS_IN6ADDR_ANY(lr->bind_addr)
621 && lr->bind_addr->port == lr->next->bind_addr->port
622 && IS_INADDR_ANY(lr->next->bind_addr)) {
626 previous->next = lr->next;
629 ap_listeners = lr->next;
638 lr->bind_addr->family = AF_INET;
660 for (lr = ap_listeners; lr; lr = lr->next) {
663 status = apr_socket_opt_set(lr->sd, APR_SO_NONBLOCK, use_nonblock);
691 ap_listen_rec *lr;
704 for (lr = ap_listeners; lr; lr = lr->next) {
705 if (apr_sockaddr_equal(lr->bind_addr, addr->host_addr) &&
706 lr->bind_addr->port == addr->host_port) {
707 ap_set_server_protocol(ls, lr->protocol);
745 for (lr = ap_listeners; lr; lr = lr->next) {
750 if (apr_sockaddr_equal(lr->bind_addr, addr->host_addr) &&
751 lr->bind_addr->port == addr->host_port) {
753 ap_apply_accept_filter(s->process->pool, lr, ls);
759 ap_apply_accept_filter(s->process->pool, lr, s);
774 ap_listen_rec *lr;
809 lr = ap_listeners;
810 while (lr) {
818 apr_os_sock_get(&thesock, lr->sd);
820 lr->protocol, &duplr)) != APR_SUCCESS) {
829 duplr->protocol = apr_pstrdup(p, lr->protocol);
830 hostname = apr_pstrdup(p, lr->bind_addr->hostname);
831 port = lr->bind_addr->port;
864 lr = lr->next;
890 ap_listen_rec *lr;
891 for (lr = listeners; lr; lr = lr->next) {
892 apr_socket_close(lr->sd);
893 lr->active = 0;
899 ap_listen_rec *lr;
902 for (lr = ap_listeners; lr; lr = lr->next) {
903 if (lr->slave != slave) {
904 apr_socket_close(lr->sd);
905 lr->active = 0;