Logo Search packages:      
Sourcecode: ufw version File versions

def src::common::UFWRule::set_protocol (   self,
  protocol 
)

Sets protocol of the rule

Definition at line 164 of file common.py.

00164                                     :
        '''Sets protocol of the rule'''
        if protocol == "tcp" or protocol == "udp" or protocol == "any":
            self.protocol = protocol
        else:
            err_msg = _("Unsupported protocol '%s'") % (protocol)
            raise UFWError(err_msg)

    def _fix_anywhere(self):


Generated by  Doxygen 1.6.0   Back to index