===== net/ipv4/netfilter/ipt_multiport.c 1.8 vs edited ===== --- 1.8/net/ipv4/netfilter/ipt_multiport.c 2004-08-19 02:14:53 +02:00 +++ edited/net/ipv4/netfilter/ipt_multiport.c 2005-01-01 18:58:25 +01:00 @@ -88,19 +88,7 @@ unsigned int matchsize, unsigned int hook_mask) { - const struct ipt_multiport *multiinfo = matchinfo; - - if (matchsize != IPT_ALIGN(sizeof(struct ipt_multiport))) - return 0; - - /* Must specify proto == TCP/UDP, no unknown flags or bad count */ - return (ip->proto == IPPROTO_TCP || ip->proto == IPPROTO_UDP) - && !(ip->invflags & IPT_INV_PROTO) - && matchsize == IPT_ALIGN(sizeof(struct ipt_multiport)) - && (multiinfo->flags == IPT_MULTIPORT_SOURCE - || multiinfo->flags == IPT_MULTIPORT_DESTINATION - || multiinfo->flags == IPT_MULTIPORT_EITHER) - && multiinfo->count <= IPT_MULTI_PORTS; + return (matchsize == IPT_ALIGN(sizeof(struct ipt_multiport))); } static struct ipt_match multiport_match = {