Jason King wrote:
> When using libdlpi, if a link is opened (dlpi_open), and bound to a
> given sap (dlpi_bind), I strongly suspect that all matching messages
> (packets) on that link are queued for consumption (using dlpi_recv()
> to drain the queue). What I can't find is what happens if too many
> messages get queued before dlpi_recv() can drain them -- the obvious
> thing is to drop subsequent packets until there's enough room to
> enqueue more, but how would one detect that condition?
You can use bufmod(7M) to detect this (the header it returns has a drop
count). Bufmod also allows you to control how much is buffered; by
default without bufmod I think only 4kbyte is buffered by the stream head.
Erik
_______________________________________________
networking-discuss mailing list
[email protected]