fix hash calculation used to determine GRE tunnel keys
for fixing tunnels between distributed controlnets (Boeing r1830)
This commit is contained in:
parent
d48af2afae
commit
e610a8d726
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue