Hi all,

I am working on BSD socket library given by VxWorks. I am facing a strange problem of binding SNMP sockets to port 161. I see(by using a "netstat" like api in VxWorks) that the port is attached as soon as network library is initiated and as a result I am not able to bind my application to port 161. I tried reusing the port address by using setsockopt() call but to no avail.


I understand that VxWorks will have this problem fixed but I am wondering if there is a way, in BSD socket applications to kind of "unbind" the port before starting an application. Is this a sane problem? Correct me if I am wrong.


Cheers.
Sarma.