From: Patrick McHardy <kaber@trash.net>
To: "Tseng, Kuo-Lang" <kuo-lang.tseng@intel.com>
Cc: netfilter-devel@vger.kernel.org,
Bart De Schuymer <bdschuym@pandora.be>,
ebtables-devel@lists.sourceforge.net
Subject: Re: [Ebtables-devel] [PATCH 2/2] Add IPv6 support
Date: Mon, 21 Apr 2008 16:41:05 +0200 [thread overview]
Message-ID: <480CA781.6020602@trash.net> (raw)
In-Reply-To: <3F25FE8C477E9E4FB3D42C2FF937C08AD619F1@orsmsx423.amr.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 344 bytes --]
Tseng, Kuo-Lang wrote:
> Please try out the updated patch. It has fixed the coding style errors
> and added protocol checks for UDPLITE, and shared the TCP/UDP/.. logging
> part.
Thanks. Unfortunately you've missed the networking merge window by
a few days. I've queued your patch for 2.6.27 with the attached
whitespace and sparse fixes.
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 2645 bytes --]
diff --git a/net/bridge/netfilter/ebt_ip6.c b/net/bridge/netfilter/ebt_ip6.c
index 7fc44ae..36efb3a 100644
--- a/net/bridge/netfilter/ebt_ip6.c
+++ b/net/bridge/netfilter/ebt_ip6.c
@@ -7,7 +7,7 @@
* Jan Engelhardt <jengelh@computergmbh.de>
*
* Summary:
- * This is just a modification of the IPv4 code written by
+ * This is just a modification of the IPv4 code written by
* Bart De Schuymer <bdschuym@pandora.be>
* with the changes required to support IPv6
*
@@ -23,8 +23,8 @@
#include <net/dsfield.h>
struct tcpudphdr {
- uint16_t src;
- uint16_t dst;
+ __be16 src;
+ __be16 dst;
};
static int ebt_filter_ip6(const struct sk_buff *skb,
@@ -47,14 +47,14 @@ static int ebt_filter_ip6(const struct sk_buff *skb,
FWINV(info->tclass != ipv6_get_dsfield(ih6), EBT_IP6_TCLASS))
return EBT_NOMATCH;
for (i = 0; i < 4; i++)
- tmp_addr.in6_u.u6_addr32[i] = ih6->saddr.in6_u.u6_addr32[i] &
+ tmp_addr.in6_u.u6_addr32[i] = ih6->saddr.in6_u.u6_addr32[i] &
info->smsk.in6_u.u6_addr32[i];
if (info->bitmask & EBT_IP6_SOURCE &&
- FWINV((ipv6_addr_cmp(&tmp_addr, &info->saddr) != 0),
+ FWINV((ipv6_addr_cmp(&tmp_addr, &info->saddr) != 0),
EBT_IP6_SOURCE))
return EBT_NOMATCH;
for (i = 0; i < 4; i++)
- tmp_addr.in6_u.u6_addr32[i] = ih6->daddr.in6_u.u6_addr32[i] &
+ tmp_addr.in6_u.u6_addr32[i] = ih6->daddr.in6_u.u6_addr32[i] &
info->dmsk.in6_u.u6_addr32[i];
if (info->bitmask & EBT_IP6_DEST &&
FWINV((ipv6_addr_cmp(&tmp_addr, &info->daddr) != 0), EBT_IP6_DEST))
@@ -71,7 +71,7 @@ static int ebt_filter_ip6(const struct sk_buff *skb,
if (!(info->bitmask & EBT_IP6_DPORT) &&
!(info->bitmask & EBT_IP6_SPORT))
return EBT_MATCH;
- pptr = skb_header_pointer(skb, offset_ph, sizeof(_ports),
+ pptr = skb_header_pointer(skb, offset_ph, sizeof(_ports),
&_ports);
if (pptr == NULL)
return EBT_NOMATCH;
@@ -84,7 +84,7 @@ static int ebt_filter_ip6(const struct sk_buff *skb,
if (info->bitmask & EBT_IP6_SPORT) {
u32 src = ntohs(pptr->src);
if (FWINV(src < info->sport[0] ||
- src > info->sport[1], EBT_IP6_SPORT))
+ src > info->sport[1], EBT_IP6_SPORT))
return EBT_NOMATCH;
}
return EBT_MATCH;
diff --git a/net/bridge/netfilter/ebt_log.c b/net/bridge/netfilter/ebt_log.c
index ba132e5..c883ec8 100644
--- a/net/bridge/netfilter/ebt_log.c
+++ b/net/bridge/netfilter/ebt_log.c
@@ -124,7 +124,7 @@ ebt_log_packet(unsigned int pf, unsigned int hooknum,
}
if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto ==
- htons(ETH_P_IPV6)){
+ htons(ETH_P_IPV6)) {
const struct ipv6hdr *ih;
struct ipv6hdr _iph;
uint8_t nexthdr;
prev parent reply other threads:[~2008-04-21 14:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.53487.1201131436.6775.ebtables-devel@lists.sourceforge.net>
[not found] ` <3F25FE8C477E9E4FB3D42C2FF937C08A72D8D4@orsmsx423.amr.corp.intel.com>
[not found] ` <3F25FE8C477E9E4FB3D42C2FF937C08A767706@orsmsx423.amr.corp.intel.com>
[not found] ` <1201303354.2909.1.camel@localhost.localdomain>
[not found] ` <3F25FE8C477E9E4FB3D42C2FF937C08A82039A@orsmsx423.amr.corp.intel.com>
[not found] ` <Pine.LNX.4.64.0802070130120.23855@fbirervta.pbzchgretzou.qr>
[not found] ` <3F25FE8C477E9E4FB3D42C2FF937C08A85CA7F@orsmsx423.amr.corp.intel.com>
[not found] ` <Pine.LNX.4.64.0802080126020.25157@fbirervta.pbzchgretzou.qr>
[not found] ` <3F25FE8C477E9E4FB3D42C2FF937C08A85CB14@orsmsx423.amr.corp.intel.com>
[not found] ` <1202494854.2895.11.camel@localhost.localdomain>
2008-02-09 0:49 ` Ebtables plans Jan Engelhardt
2008-02-11 20:57 ` Bart De Schuymer
2008-02-16 22:49 ` Jan Engelhardt
[not found] ` <3F25FE8C477E9E4FB3D42C2FF937C08A85D069@orsmsx423.amr.corp.intel.com>
[not found] ` <1202664082.2907.5.camel@localhost.localdomain>
[not found] ` <3F25FE8C477E9E4FB3D42C2FF937C08A85D440@o rsmsx423.amr.corp.intel.com>
[not found] ` <3F25FE8C477E9E4FB3D42C2FF937C08A85D440@orsmsx423.amr.corp.intel.com>
2008-02-12 2:26 ` [Ebtables-devel] [PATCH] IPv6 dnat/snat support Tseng, Kuo-Lang
2008-02-12 2:43 ` Jan Engelhardt
[not found] ` <Pine.LNX.4.64.0802120333400.29955-vVwEwcwQeYFPkBl3ERsXe1l1cybopEuJUBSOeVevoDU@public.gmane.org>
2008-02-19 1:49 ` [PATCH 0/2] Add IPv6 support Tseng, Kuo-Lang
[not found] ` <3F25FE8C477E9E4FB3D42C2FF937C08A8D0909-7XlYjKTK0pNQxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2008-02-19 15:03 ` Patrick McHardy
2008-02-19 17:46 ` [Ebtables-devel] " Bart De Schuymer
2008-02-26 19:08 ` Tseng, Kuo-Lang
2008-02-26 19:11 ` Tseng, Kuo-Lang
[not found] ` <Pine.LNX.4.64.0802070130120.23855-vVwEwcwQeYFPkBl3ERsXe1l1cybopEuJUBSOeVevoDU@public.gmane.org>
2008-02-19 2:05 ` [PATCH 2/2] " Tseng, Kuo-Lang
2008-02-19 18:27 ` [Ebtables-devel] " Tseng, Kuo-Lang
2008-04-08 17:37 ` Patrick McHardy
[not found] ` <47FBAD77.2050701-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-04-10 20:23 ` Tseng, Kuo-Lang
2008-04-21 4:50 ` [Ebtables-devel] " Tseng, Kuo-Lang
2008-04-21 14:41 ` Patrick McHardy [this message]
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=480CA781.6020602@trash.net \
--to=kaber@trash.net \
--cc=bdschuym@pandora.be \
--cc=ebtables-devel@lists.sourceforge.net \
--cc=kuo-lang.tseng@intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox