Re: [PATCH nft v3 1/2] datatype: Replace getnameinfo() by internal lookup table

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

 



On Mon, Nov 28, 2016 at 06:20:10PM -0200, Elise Lennion wrote:
[...]
> diff --git a/src/services.c b/src/services.c
> new file mode 100644
> index 0000000..8cb1cdf
> --- /dev/null
> +++ b/src/services.c
> @@ -0,0 +1,343 @@
> +#include <nftables.h>
> +#include <datatype.h>
> +
> +const struct symbol_table serv_tbl = {
> +	.symbols =	{
> +		SYMBOL("exec",	2),

Please, use __constant_htons() so these ports become understandable.

Let's keep it simple, so we forget on binary search by now.

Very much looking forward to having this in the nft tree.

Thanks!
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux