mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
TRUCLUSTER support: isc_interfaceiter_first() should set clua_context.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: ifiter_ioctl.c,v 1.31 2002/07/01 23:00:37 marka Exp $ */
|
/* $Id: ifiter_ioctl.c,v 1.32 2002/07/02 05:51:42 marka Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Obtain the list of network interfaces using the SIOCGLIFCONF ioctl.
|
* Obtain the list of network interfaces using the SIOCGLIFCONF ioctl.
|
||||||
@@ -152,9 +152,6 @@ getbuf4(isc_interfaceiter_t *iter) {
|
|||||||
unexpected:
|
unexpected:
|
||||||
isc_mem_put(iter->mctx, iter->buf, iter->bufsize);
|
isc_mem_put(iter->mctx, iter->buf, iter->bufsize);
|
||||||
iter->buf = NULL;
|
iter->buf = NULL;
|
||||||
#ifdef HAVE_TRUCLUSTER
|
|
||||||
iter->clua_context = 0;
|
|
||||||
#endif
|
|
||||||
return (ISC_R_UNEXPECTED);
|
return (ISC_R_UNEXPECTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -317,6 +314,7 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
|
|||||||
* A newly created iterator has an undefined position
|
* A newly created iterator has an undefined position
|
||||||
* until isc_interfaceiter_first() is called.
|
* until isc_interfaceiter_first() is called.
|
||||||
*/
|
*/
|
||||||
|
iter->clua_context = -1;
|
||||||
iter->pos = (unsigned int) -1;
|
iter->pos = (unsigned int) -1;
|
||||||
iter->result = ISC_R_FAILURE;
|
iter->result = ISC_R_FAILURE;
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: interfaceiter.c,v 1.26 2002/07/01 23:00:38 marka Exp $ */
|
/* $Id: interfaceiter.c,v 1.27 2002/07/02 05:51:43 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -109,6 +109,9 @@ isc_interfaceiter_first(isc_interfaceiter_t *iter) {
|
|||||||
REQUIRE(VALID_IFITER(iter));
|
REQUIRE(VALID_IFITER(iter));
|
||||||
|
|
||||||
iter->pos = 0;
|
iter->pos = 0;
|
||||||
|
#ifdef HAVE_TRUCLUSTER
|
||||||
|
iter->clua_context = 0;
|
||||||
|
#endif
|
||||||
for (;;) {
|
for (;;) {
|
||||||
result = internal_current(iter);
|
result = internal_current(iter);
|
||||||
if (result != ISC_R_IGNORE)
|
if (result != ISC_R_IGNORE)
|
||||||
|
Reference in New Issue
Block a user