nft - Extracting the value from a variable_expr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to extract the value from a symbol which comes from a
variable_expr. This variable is a simple string i.e "define foo = bar".

I am doing something like that:

char *example_function(struct expr *variable)
{
	struct *sym;
	char *sym_value;

	sym = variable->sym;
	sym_value = mpz_get_str(NULL, 10, sym->expr->value);

	return sym_value;
}


But this doesn't work so probably I am misundestanding something. Thanks!







[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux