Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
632
Issues
632
List
Boards
Labels
Service Desk
Milestones
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
2f6d1483
Commit
2f6d1483
authored
Oct 22, 2001
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1064. [bug] Do not shutdown active interfaces if we are unable
to scan the list of interfaces. [RT
#1921
]
parent
ea7b38cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
11 deletions
+23
-11
CHANGES
CHANGES
+3
-0
bin/named/interfacemgr.c
bin/named/interfacemgr.c
+20
-11
No files found.
CHANGES
View file @
2f6d1483
1064. [bug] Do not shutdown active interfaces if we are unable
to scan the list of interfaces. [RT #1921]
1063. [bug] libbind: irix "make install" was failing.
1062. [bug] If the control channel listener socket was shut
...
...
bin/named/interfacemgr.c
View file @
2f6d1483
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: interfacemgr.c,v 1.6
3 2001/10/12 23:05:58 gson
Exp $ */
/* $Id: interfacemgr.c,v 1.6
4 2001/10/22 03:31:24 marka
Exp $ */
#include <config.h>
...
...
@@ -469,7 +469,7 @@ clearacl(isc_mem_t *mctx, dns_acl_t **aclp) {
return
(
ISC_R_SUCCESS
);
}
static
void
static
isc_result_t
do_ipv4
(
ns_interfacemgr_t
*
mgr
)
{
isc_interfaceiter_t
*
iter
=
NULL
;
isc_result_t
result
;
...
...
@@ -479,7 +479,7 @@ do_ipv4(ns_interfacemgr_t *mgr) {
result
=
isc_interfaceiter_create
(
mgr
->
mctx
,
&
iter
);
if
(
result
!=
ISC_R_SUCCESS
)
return
;
return
(
result
)
;
result
=
clearacl
(
mgr
->
mctx
,
&
mgr
->
aclenv
.
localhost
);
if
(
result
!=
ISC_R_SUCCESS
)
...
...
@@ -609,8 +609,11 @@ do_ipv4(ns_interfacemgr_t *mgr) {
UNEXPECTED_ERROR
(
__FILE__
,
__LINE__
,
"IPv4: interface iteration failed: %s"
,
isc_result_totext
(
result
));
else
result
=
ISC_R_SUCCESS
;
cleanup_iter:
isc_interfaceiter_destroy
(
&
iter
);
return
(
result
);
}
static
isc_boolean_t
...
...
@@ -635,7 +638,7 @@ listenon_is_ip6_any(ns_listenelt_t *elt) {
return
(
ISC_FALSE
);
/* All others */
}
static
void
static
isc_result_t
do_ipv6
(
ns_interfacemgr_t
*
mgr
)
{
isc_result_t
result
;
ns_interface_t
*
ifp
;
...
...
@@ -654,7 +657,7 @@ do_ipv6(ns_interfacemgr_t *mgr) {
ISC_LOG_ERROR
,
"bad IPv6 listen-on list: "
"must be 'any' or 'none'"
);
return
;
return
(
ISC_R_FAILURE
)
;
}
in6a
=
in6addr_any
;
...
...
@@ -678,17 +681,21 @@ do_ipv6(ns_interfacemgr_t *mgr) {
}
}
}
return
(
ISC_R_SUCCESS
);
}
void
ns_interfacemgr_scan
(
ns_interfacemgr_t
*
mgr
,
isc_boolean_t
verbose
)
{
isc_boolean_t
purge
=
ISC_TRUE
;
REQUIRE
(
NS_INTERFACEMGR_VALID
(
mgr
));
mgr
->
generation
++
;
/* Increment the generation count. */
if
(
isc_net_probeipv6
()
==
ISC_R_SUCCESS
)
do_ipv6
(
mgr
);
if
(
isc_net_probeipv6
()
==
ISC_R_SUCCESS
)
{
if
(
do_ipv6
(
mgr
)
!=
ISC_R_SUCCESS
)
purge
=
ISC_FALSE
;
}
#ifdef WANT_IPV6
else
isc_log_write
(
IFMGR_COMMON_LOGARGS
,
...
...
@@ -696,9 +703,10 @@ ns_interfacemgr_scan(ns_interfacemgr_t *mgr, isc_boolean_t verbose) {
"no IPv6 interfaces found"
);
#endif
if
(
isc_net_probeipv4
()
==
ISC_R_SUCCESS
)
do_ipv4
(
mgr
);
else
if
(
isc_net_probeipv4
()
==
ISC_R_SUCCESS
)
{
if
(
do_ipv4
(
mgr
)
!=
ISC_R_SUCCESS
)
purge
=
ISC_FALSE
;
}
else
isc_log_write
(
IFMGR_COMMON_LOGARGS
,
verbose
?
ISC_LOG_INFO
:
ISC_LOG_DEBUG
(
1
),
"no IPv4 interfaces found"
);
...
...
@@ -709,7 +717,8 @@ ns_interfacemgr_scan(ns_interfacemgr_t *mgr, isc_boolean_t verbose) {
* how we catch interfaces that go away or change their
* addresses.
*/
purge_old_interfaces
(
mgr
);
if
(
purge
)
purge_old_interfaces
(
mgr
);
/*
* Warn if we are not listening on any interface, unless
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment