[[ Old thread warning ]]
On Fri, 2006-03-31 at 16:45, James Carlson wrote:
> Bill Sommerfeld writes:
> > Perhaps I'm missing something, but it looks like there isn't a
> > straightforward test you can do within ip on a conn_t to see that it is
> > or isn't bound; it looks like that state is kept in the sockfs layer and
> > isn't readily accessible from ip....
>
> Won't conn_flags & IPCL_BOUND be set?
digging further after constructing a unit test:
for conn_t's corresponding to TCP sockets, IPCL_BOUND doesn't actually
get set until bind() *and* either listen() or connect() are invoked;
this appears to be due to an interface mismatch between the socket API
and TPI.
it appears that this is only the case for TCP and not for UDP or SCTP.
I think I can live with this little oddity for now.
- Bill
_______________________________________________
networking-discuss mailing list
[email protected]