diff options
author | Patrick McHardy | 2006-01-17 22:01:31 +0100 |
---|---|---|
committer | David S. Miller | 2006-01-17 22:01:31 +0100 |
commit | ab67a4d511188680beb8a0d82a90f55dbeb53d5c (patch) | |
tree | c2a9842b9877df27a50448506c3cfe3a6f00f6df /net/bridge/netfilter/ebt_ip.c | |
parent | [PKT_SCHED]: Handle SCTP/DCCP in sfq_hash (diff) | |
download | kernel-qcow2-linux-ab67a4d511188680beb8a0d82a90f55dbeb53d5c.tar.gz kernel-qcow2-linux-ab67a4d511188680beb8a0d82a90f55dbeb53d5c.tar.xz kernel-qcow2-linux-ab67a4d511188680beb8a0d82a90f55dbeb53d5c.zip |
[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_ip.c')
-rw-r--r-- | net/bridge/netfilter/ebt_ip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebt_ip.c b/net/bridge/netfilter/ebt_ip.c index f158fe67dd60..dc5d0b2427cf 100644 --- a/net/bridge/netfilter/ebt_ip.c +++ b/net/bridge/netfilter/ebt_ip.c @@ -92,7 +92,9 @@ static int ebt_ip_check(const char *tablename, unsigned int hookmask, if (info->invflags & EBT_IP_PROTO) return -EINVAL; if (info->protocol != IPPROTO_TCP && - info->protocol != IPPROTO_UDP) + info->protocol != IPPROTO_UDP && + info->protocol != IPPROTO_SCTP && + info->protocol != IPPROTO_DCCP) return -EINVAL; } if (info->bitmask & EBT_IP_DPORT && info->dport[0] > info->dport[1]) |