From ee091d09eb17a7e72034ad2332843aee2e2f9970 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 28 Feb 2013 06:27:51 -0800 Subject: [PATCH] Allow ports with UDPLITE Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/IPAddrs.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Shorewall/Perl/Shorewall/IPAddrs.pm b/Shorewall/Perl/Shorewall/IPAddrs.pm index b98b2f182..5be1796ed 100644 --- a/Shorewall/Perl/Shorewall/IPAddrs.pm +++ b/Shorewall/Perl/Shorewall/IPAddrs.pm @@ -401,10 +401,11 @@ sub validate_portpair( $$ ) { $what = 'port'; } - fatal_error "Using a $what ( $portpair ) requires PROTO TCP, UDP, SCTP or DCCP" unless - defined $protonum && ( $protonum == TCP || - $protonum == UDP || - $protonum == SCTP || + fatal_error "Using a $what ( $portpair ) requires PROTO TCP, UDP, UDPLITE, SCTP or DCCP" unless + defined $protonum && ( $protonum == TCP || + $protonum == UDP || + $protonum == UDPLITE || + $protonum == SCTP || $protonum == DCCP ); join ':', @ports;