Matthew Luckie wrote:
> I have written a syscall that creates a packet in kernel-space,
> timestamps it, and then sends it via ip_output
> 
> If the user-space application uses this system call faster than the
> packets can be sent, ip_output will return ENOBUFS.
> 
> Is there a mechanism to tell when ip_output should be called again?
> Ideally, I would block until such time as i could send it via ip_output

You probably get that because the outbound interface queue gets full, so 
you want to block your caller until space becomes available there. There 
currently is no such mechanism (AFAIK, and talking about -STABLE here), 
but it's not too much work to add.

Not sure if this is really useful though. Ususally the NIC doesn't limit 
your transmission speed, it's losses inside the network that do. Also, 
why a new system call? Is it that much more efficient than RawIP?

Lars
-- 
Lars Eggert <[EMAIL PROTECTED]>               Information Sciences Institute
http://www.isi.edu/larse/              University of Southern California

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to