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

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

 



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


--
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