FreeBSD/sys/contrib/ipfilter/netinet/fil.c
/* ------------------------------------------------------------------------ */
/* Function:   ipf_unload_all                                               */
/* Returns:    0 = success, -1 = failure                                    */
/* Parameters: none                                                         */
/*                                                                          */
/* Work through all of the subsystems inside IPFilter and call the unload   */
/* function for each in an order that won't lead to a crash :)              */
/* ------------------------------------------------------------------------ */
ipf_unload_all
Returns:    0 = success, -1 = failure
Parameters: none

Work through all of the subsystems inside IPFilter and call the unload
function for each in an order that won't lead to a crash :)
ipf_unload_all Returns : 0 = success - 1 = failure Parameters : none Work through all of the subsystems inside IPFilter and call the unload function for each in an order that won ' t lead to a crash : )
int
ipf_unload_all()
{
	if (ipf_proxy_main_unload() == -1)
		return -1;
	if (ipf_auth_main_unload() == -1)
		return -1;
	if (ipf_frag_main_unload() == -1)
		return -1;
	if (ipf_nat_main_unload() == -1)
		return -1;
	if (ipf_state_main_unload() == -1)
		return -1;
	if (ipf_main_unload() == -1)
		return -1;
	return 0;
}
int ipf_unload_all ( ) { if ( ipf_proxy_main_unload ( ) == -1 ) return -1 ; if ( ipf_auth_main_unload ( ) == -1 ) return -1 ; if ( ipf_frag_main_unload ( ) == -1 ) return -1 ; if ( ipf_nat_main_unload ( ) == -1 ) return -1 ; if ( ipf_state_main_unload ( ) == -1 ) return -1 ; if ( ipf_main_unload ( ) == -1 ) return -1 ; return 0 ; }
Function:   ipf_unload_all
Returns:    0 = success, -1 = failure
Parameters: none
Function : ipf_unload_all Returns : 0 = success - 1 = failure Parameters : none