Re: Socket bind failing with error -98
Suraj Choudhari <[email protected]>
| Newsgroups | org.kernel.vger.lartc,org.kernel.vger.linux-newbie |
|---|---|
| Message-ID | <CAGvB2rM50ubvbQs1ZC1CK5GBSLjQaz74O2uv7nL4Y3iq48gnQw@mail.gmail.com> |
Please share your thoughts about the problem. Thanks, Suraj On Tue, Feb 7, 2017 at 12:17 PM, Suraj Choudhari <[email protected]> wrote: > Hi experts, > > I am facing a problem while binding to TCP socket using bind() > function, the problem is see for kernel versions >= 4.4. > > The bind() function is failing with error code -98. > > Currently i am calling bind() through a kernel thread. > > I searched similar errors and tried with 'setsockopt' with > 'SO_REUSEADDR' and 'SO_REUSEPORT ' flags. > > However, bind() still continues to fail with similar error. > > Can you please suggest if there are any other ways to fix it or any > particular debugging we shall do to analyze it ? > > > Thanks, > Suraj