> Does anyone know why icmp_bind is called with qwriter() ?

I can't see a reason -- but I have a guess: usually, xxx_bind() has to
find an available port number, which may (and does, in the case of the
early Solaris TCP and UDP implementations) require synchronization with
other module instances.  In fact, if you look at the early udp.c deltas,
you'll see similar handling for udp_bind() (and like icmp_bind(),
udp_bind() is the only function to be called exclusively -- because it has
to walk udp_g_head verifying its port number is available).  My suspicion
is that the author of icmp_bind() simply followed suit without thinking
about it too much.

-- 
meem
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to