Logo Search packages:      
Sourcecode: ufw version File versions

def src::common::UFWRule::get_app_tuple (   self  ) 

Returns a tuple to identify an app rule

Definition at line 328 of file common.py.

00328                            :
        '''Returns a tuple to identify an app rule'''
        tuple = ""
        if self.dapp != "" or self.sapp != "":
            tuple = "%s %s %s %s" % (self.dapp, self.dst, self.sapp, self.src)
            if self.dapp == "":
                tuple = "%s %s %s %s" % (self.dport, self.dst, self.sapp, \
                                         self.src)
            if self.sapp == "":
                tuple = "%s %s %s %s" % (self.dapp, self.dst, self.sport, \
                                         self.src)

        return tuple



Generated by  Doxygen 1.6.0   Back to index