FreeBSD/sys/netpfil/ipfw/ip_fw_table.c
/*
 * Helper function to export table algo data
 * to tentry format before calling user function.
 *
 * Returns 0 on success.
 */
Helper function to export table algo data
to tentry format before calling user function.

Returns 0 on success.
Helper function to export table algo data to tentry format before calling user function . Returns 0 on success .
static int
prepare_table_tentry(void *e, void *arg)
{
	struct dump_args *da;
	struct table_config *tc;
	struct table_algo *ta;
	int error;
	da = (struct dump_args *)arg;
	tc = da->tc;
	ta = tc->ta;
	error = ta->dump_tentry(tc->astate, da->ti, e, &da->tent);
	if (error != 0)
		return (error);
	da->f(&da->tent, da->farg);
	return (0);
}
static int prepare_table_tentry ( void * e , void * arg ) { struct dump_args * da ; struct table_config * tc ; struct table_algo * ta ; int error ; da = ( struct dump_args * ) arg ; tc = da -> tc ; ta = tc -> ta ; error = ta -> dump_tentry ( tc -> astate , da -> ti , e , & da -> tent ) ; if ( error != 0 ) return ( error ) ; da -> f ( & da -> tent , da -> farg ) ; return ( 0 ) ; }
Helper function to export table algo data
 to tentry format before calling user function.
Helper function to export table algo data to tentry format before calling user function .