From: Pablo Neira Subject: ipt_entry_match and data field Date: Fri, 07 May 2004 15:08:12 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <409B8A3C.1030009@eurodev.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: To: Netfilter Development Mailinglist Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org Hi, can anyone explain me the use of data as unsigned char in the structure ipt_entry_match? I mean, why are we using unsigned char? ----- snipped from ip_tables.h ------------------------ struct ipt_entry_match { union { struct { u_int16_t match_size; /* Used by userspace */ char name[IPT_FUNCTION_MAXNAMELEN]; } user; struct { u_int16_t match_size; /* Used inside the kernel */ struct ipt_match *match; } kernel; /* Total length */ u_int16_t match_size; } u; unsigned char data[0]; }; ------------ end --------------------------- thanks, Pablo