nat: fix dslite session port allocation 04/27204/2
authorVladimir Ratnikov <vratnikov@netgate.com>
Thu, 21 May 2020 17:52:51 +0000 (13:52 -0400)
committerOle Trøan <otroan@employees.org>
Fri, 22 May 2020 08:02:12 +0000 (08:02 +0000)
commitf3b327673ccb1c0e70d30cfdd017b893b7b20b94
tree64be6855afd88a513b1ac24c42d9af91ff91a795
parentb8749ff775ab2536134672fec57003f0eb488aa5
nat: fix dslite session port allocation

Fix allocation of port per dslite session.
After each session is created per protocol,
when new one should be created with new port,
instead it's trying to create with the same port
and while(1) loop is executed forever and VPP does
not response

Type: fix

Signed-off-by: Vladimir Ratnikov <vratnikov@netgate.com>
Change-Id: Ic91b8b07253498ef9846ca60bcd4c4c76a5fac91
src/plugins/nat/lib/alloc.c