[tproxy] [PATCH] TProxy: added IPv6 support for socket match

Balazs Scheidler bazsi at balabit.hu
Mon Aug 31 12:41:40 CEST 2009


On Sun, 2009-08-30 at 14:26 +0200, Jan Engelhardt wrote:
> On Friday 2009-08-28 07:56, Balazs Scheidler wrote:
> >+++ b/include/linux/netfilter/xt_socket.h
> >@@ -0,0 +1,8 @@
> >+#ifndef _XT_SOCKET_H_match
> >+#define _XT_SOCKET_H_match
> >+
> >+struct xt_socket_match_info1 {
> >+	__u8 transparent:1;
> >+};
> >+
> >+#endif /* _XT_SOCKET_H_match */
> 
> Bitfields are a no-no in the ABI.
> 

Ops, I took that patch from an ancient userspace patch created earlier
by Panther.

It did work for me, as the kernel uses:

enum {
        XT_SOCKET_TRANSPARENT = 1 << 0,
};

struct xt_socket_mtinfo1 {
        __u8 flags;
};


Thanks for noticing.

-- 
Bazsi




More information about the tproxy mailing list