fix hash calculation used to determine GRE tunnel keys

for fixing tunnels between distributed controlnets
(Boeing r1830)
This commit is contained in:
ahrenholz 2014-04-02 21:19:41 +00:00
parent d48af2afae
commit e610a8d726

View file

@ -286,7 +286,7 @@ class CoreBroker(ConfigurableManager):
# this is the master session
sid = self.session.sessionid
key = (sid << 16) | hash(n1num) | (hash(n2num) << 8)
key = (sid << 16) ^ hash(n1num) ^ (hash(n2num) << 8)
return key & 0xFFFFFFFF
def addtunnel(self, remoteip, n1num, n2num, localnum):