diff options
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/netfilter/ebt_ip.c | 4 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_log.c | 4 |
2 files changed, 6 insertions, 2 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, | |||
92 | if (info->invflags & EBT_IP_PROTO) | 92 | if (info->invflags & EBT_IP_PROTO) |
93 | return -EINVAL; | 93 | return -EINVAL; |
94 | if (info->protocol != IPPROTO_TCP && | 94 | if (info->protocol != IPPROTO_TCP && |
95 | info->protocol != IPPROTO_UDP) | 95 | info->protocol != IPPROTO_UDP && |
96 | info->protocol != IPPROTO_SCTP && | ||
97 | info->protocol != IPPROTO_DCCP) | ||
96 | return -EINVAL; | 98 | return -EINVAL; |
97 | } | 99 | } |
98 | if (info->bitmask & EBT_IP_DPORT && info->dport[0] > info->dport[1]) | 100 | if (info->bitmask & EBT_IP_DPORT && info->dport[0] > info->dport[1]) |
diff --git a/net/bridge/netfilter/ebt_log.c b/net/bridge/netfilter/ebt_log.c index a29c1232c420..0128fbbe2328 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, | |||
95 | "tos=0x%02X, IP proto=%d", NIPQUAD(ih->saddr), | 95 | "tos=0x%02X, IP proto=%d", NIPQUAD(ih->saddr), |
96 | NIPQUAD(ih->daddr), ih->tos, ih->protocol); | 96 | NIPQUAD(ih->daddr), ih->tos, ih->protocol); |
97 | if (ih->protocol == IPPROTO_TCP || | 97 | if (ih->protocol == IPPROTO_TCP || |
98 | ih->protocol == IPPROTO_UDP) { | 98 | ih->protocol == IPPROTO_UDP || |
99 | ih->protocol == IPPROTO_SCTP || | ||
100 | ih->protocol == IPPROTO_DCCP) { | ||
99 | struct tcpudphdr _ports, *pptr; | 101 | struct tcpudphdr _ports, *pptr; |
100 | 102 | ||
101 | pptr = skb_header_pointer(skb, ih->ihl*4, | 103 | pptr = skb_header_pointer(skb, ih->ihl*4, |