summaryrefslogtreecommitdiff
path: root/net/bridge/netfilter/ebt_log.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-01-17 13:01:31 -0800
committerDavid S. Miller <davem@davemloft.net>2006-01-17 13:01:31 -0800
commitab67a4d511188680beb8a0d82a90f55dbeb53d5c (patch)
treec2a9842b9877df27a50448506c3cfe3a6f00f6df /net/bridge/netfilter/ebt_log.c
parentae82af54d73becd66804d942cf39b049e625fa89 (diff)
[EBTABLES]: Handle SCTP/DCCP in ebt_{ip,log}
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/netfilter/ebt_log.c')
-rw-r--r--net/bridge/netfilter/ebt_log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebt_log.c b/net/bridge/netfilter/ebt_log.c
index a29c1232c42..0128fbbe232 100644
--- a/net/bridge/netfilter/ebt_log.c
+++ b/net/bridge/netfilter/ebt_log.c
@@ -95,7 +95,9 @@ ebt_log_packet(unsigned int pf, unsigned int hooknum,
"tos=0x%02X, IP proto=%d", NIPQUAD(ih->saddr),
NIPQUAD(ih->daddr), ih->tos, ih->protocol);
if (ih->protocol == IPPROTO_TCP ||
- ih->protocol == IPPROTO_UDP) {
+ ih->protocol == IPPROTO_UDP ||
+ ih->protocol == IPPROTO_SCTP ||
+ ih->protocol == IPPROTO_DCCP) {
struct tcpudphdr _ports, *pptr;
pptr = skb_header_pointer(skb, ih->ihl*4,