Darren Reed writes:
> On a related note, is there a way to know if q_ptr is a conn_t or
> something else?

If it's one of IP's queues you're talking about, q_ptr is a conn_t
when WR(q)->q_next is NULL, and it's an ill_t when WR(q)->q_next is
non-NULL.  See the CONN_Q() macro.

If you need to tell if something is one of IP's queues, you'll need to
crawl up into q_qinfo->qi_minfo->mi_idname and check or compare
q_qinfo against ipinfo.st_rdinit (or one of the other members there).

-- 
James Carlson, KISS Network                    <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org

Reply via email to