daemon/core/broker.py
def tunnelkey(self, n1num, n2num):
        ''' Compute a 32-bit key used to uniquely identify a GRE tunnel.
        The hash(n1num), hash(n2num) values are used, so node numbers may be
        None or string values (used for e.g. "ctrlnet").
        '''
        sid = self.session_id_master
        if sid is None:
            # this is the master session
            sid = self.session.sessionid
            
        key = (sid  << 16) ^ hash(n1num)  ^ (hash(n2num) << 8)
        return key & 0xFFFFFFFF
 Compute a 32-bit key used to uniquely identify a GRE tunnel.
        The hash(n1num), hash(n2num) values are used, so node numbers may be
        None or string values (used for e.g. "ctrlnet").
        
Compute a 32-bit key used to uniquely identify a GRE tunnel.
The hash(n1num), hash(n2num) values are used, so node numbers may be
None or string values (used for e.g.
Compute a 32 - bit key used to uniquely identify a GRE tunnel . The hash ( n1num ) hash ( n2num ) values are used so node numbers may be None or string values ( used for e . g .
def tunnelkey(self, n1num, n2num):
        sid = self.session_id_master
        if sid is None:
            sid = self.session.sessionid
        key = (sid  << 16) ^ hash(n1num)  ^ (hash(n2num) << 8)
        return key & 0xFFFFFFFF
def tunnelkey ( self , n1num , n2num ) : sid = self . session_id_master if sid is None : sid = self . session . sessionid key = ( sid << 16 ) ^ hash ( n1num ) ^ ( hash ( n2num ) << 8 ) return key & 0xFFFFFFFF
Compute a 32-bit key used to uniquely identify a GRE tunnel.
Compute a 32 - bit key used to uniquely identify a GRE tunnel .
''' Compute a 32-bit key used to uniquely identify a GRE tunnel.
        The hash(n1num), hash(n2num) values are used, so node numbers may be
        None or string values (used for e.g. "ctrlnet").
        ''' # this is the master session
self
n1num
n2num