ipt_multiport invert fix
Subsystems (2)
PATCH 1/1 ipt_multiport invert fix
I forgot to cc' netfilter-devel.
Signature · 5 lines
Live long and prosper - Harald Welte / [email protected] http://www.gnumonks.org/ ============================================================================ "If this were a dictatorship, it'd be a heck of a lot easier, just so long as I'm the dictator." -- George W. Bush Dec 18, 2000
Hi Dave!
Another iptables fix (courtesy of Marcus Sundberg), this time for the ipt_multiport module, when used in combination with the '!' inversion option at the iptables commandline.
Please apply, thanks.
net/ipv4/netfilter/ipt_multiport.c +1 -1
@@ -78,7 +78,7 @@/* Must specify proto == TCP/UDP, no unknown flags or bad count */ return (ip->proto ==IPPROTO_TCP || ip->proto ==IPPROTO_UDP ) - && !(ip->flags &IPT_INV_PROTO ) + && !(ip->invflags &IPT_INV_PROTO ) && matchsize ==IPT_ALIGN (sizeof (struct ipt_multiport )) && (multiinfo->flags ==IPT_MULTIPORT_SOURCE || multiinfo->flags == IPT_MULTIPORT_DESTINATION
Signature · 5 lines
Live long and prosper - Harald Welte / [email protected] http://www.gnumonks.org/ ============================================================================ "If this were a dictatorship, it'd be a heck of a lot easier, just so long as I'm the dictator." -- George W. Bush Dec 18, 2000