Daniel Wong wrote:
> 
> Hi,
> 
> So if I need to code some traffic control algorithm under the IP layer in
> the kernel, how do I determine how fast a particular interface goes. ie how
> much bandwidth the interface has?? Also, what unit will this value be in?? I
> was considering using MTU in the ifnet struct, but not sure how to use this,
> and how it can be calculated along with the member baudspeed.

I faced exactly this problem.

if you have a stabdard inerface (e.g. ethernet)
then you can actually ask it, but for serial
interfaces of various kinds the best you can do is try keep a 
record of the highest bandwidth seen on the device in the past.

> 
> Regards and Thanks
> Dan
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-net" in the body of the message

-- 
      __--_|\  Julian Elischer
     /       \ [EMAIL PROTECTED]
    (   OZ    ) World tour 2000-2001
---> X_.---._/  
            v

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to