All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laszlo Attila Toth <panther@balabit.hu>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Patrick McHardy <kaber@trash.net>, netfilter-devel@vger.kernel.org
Subject: Re: [resend net-next] socket: Added 'transparent' option
Date: Thu, 04 Jun 2009 17:27:44 +0200	[thread overview]
Message-ID: <4A27E7F0.6010403@balabit.hu> (raw)
In-Reply-To: <alpine.LSU.2.00.0906041653420.13894@fbirervta.pbzchgretzou.qr>

Jan Engelhardt írta:
> On Thursday 2009-06-04 15:34, Patrick McHardy wrote:
>> Laszlo Attila Toth 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;
>>> +};
>> Please use a bitmask.
> 
> enum {
> 	XT_SOCKET_TRANSPARENT = 1 << 0,
> };
> 
> struct xt_socket_mtinfo1 {
> 	__u8 flags;
> };
> 

Thanks.

My first thought was simply: = 1, without offset (and of course = 2 ...).

I'm also working on a newer revision of the limit match, which is almost 
done. It can be inverted (! --limit ...). I think in this case a 
bitfield can be used, but it is probably not necessary, the following 
extra member is enogh:

	u_int32_t invert;

(I wouldn't like to resend the patch it if it is not the best choice).

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

  reply	other threads:[~2009-06-04 15:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 13:26 [resend net-next] socket: Added 'transparent' option Laszlo Attila Toth
2009-06-04 13:26 ` [resend iptables] " Laszlo Attila Toth
2009-06-04 13:34 ` [resend net-next] " Patrick McHardy
2009-06-04 14:55   ` Jan Engelhardt
2009-06-04 15:27     ` Laszlo Attila Toth [this message]
2009-06-04 16:03       ` Jan Engelhardt
2009-06-04 16:08         ` Patrick McHardy
2009-06-05 13:06   ` Laszlo Attila Toth
2009-06-08 12:30   ` [resend2] Socket match with transparent option, take 2 Laszlo Attila Toth
2009-06-08 12:30     ` [resend2 net-next] socket: added mtinfo with 'transparent' flag Laszlo Attila Toth
2009-06-08 12:30       ` [resend2 iptables] socket match: new revision, match transparent sockets Laszlo Attila Toth
2009-06-09 12:50       ` [resend2 net-next] socket: added mtinfo with 'transparent' flag Patrick McHardy
2009-06-09 13:11         ` [net-next] " Laszlo Attila Toth
2009-06-09 13:18           ` Patrick McHardy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A27E7F0.6010403@balabit.hu \
    --to=panther@balabit.hu \
    --cc=jengelh@medozas.de \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.