Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cellular: random socket port number #7097
Build number : 2263
Build number : 1900
Jun 11, 2018
14 checks passed
Problem it solves is difficulty reconnecting to server after reboot, due to reuse of same port number. An issue we've seen before with other stacks, and has recurred with this code.
This is bringing these non-PPP modems into line with the existing behaviour of IP stacks that properly randomise like lwIP and Nanostack - algorithm is based on Nanostack's. So I think it's a 5.9.x fix. PPP modems would be getting proper randomisation already through lwIP.