FreeBSD/contrib/bsnmp/snmpd/main.c
/*
 * Delete all communities allocated by a module
 */
Delete all communities allocated by a module
Delete all communities allocated by a module
static void
reqid_flush(struct lmodule *mod)
{
	struct idrange *p, *p1;
	p = TAILQ_FIRST(&idrange_list);
	while (p != NULL) {
		p1 = TAILQ_NEXT(p, link);
		if (p->owner == mod) {
			TAILQ_REMOVE(&idrange_list, p, link);
			free(p);
		}
		p = p1;
	}
}
static void reqid_flush ( struct lmodule * mod ) { struct idrange * p , * p1 ; p = TAILQ_FIRST ( & idrange_list ) ; while ( p != NULL ) { p1 = TAILQ_NEXT ( p , link ) ; if ( p -> owner == mod ) { TAILQ_REMOVE ( & idrange_list , p , link ) ; free ( p ) ; } p = p1 ; } }
Delete all communities allocated by a module
Delete all communities allocated by a module