[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]
[Hilos de Discusión] [Fecha] [Tema] [Autor]Prueba con el rshaper buscalo en www.freshmeat.net , OJO debes poder recompilar el kernel de linux y los drivers de las tarjetas de red puesto que el autor no tiene parches para todas las tarjetas de red, te paso el patch para una tarjeta 3c509. #---------------------------------------------------------------------- --- 3c509.c Mon Apr 24 14:11:56 2000 +++ /usr/src/linux/drivers/net/3c509.c Mon Apr 24 14:01:07 2000 @@ -48,6 +48,10 @@ #define TX_TIMEOUT (400*HZ/1000) /* Maximum events (Rx packets, etc.) to handle at each interrupt. */ static int max_interrupt_work = 10; +/* Shaper Options Line #1 */ +#define EXPORT_SYMTAB +int (*net_shaper_rx_hook)(struct sk_buff *skb) = NULL; +EXPORT_SYMBOL(net_shaper_rx_hook); #include <linux/config.h> #include <linux/module.h> @@ -806,7 +810,11 @@ outw(RxDiscard, ioaddr + EL3_CMD); /* Pop top Rx packet. */ skb->protocol = eth_type_trans(skb,dev); - netif_rx(skb); + /* netif_rx(skb); */ + if (net_shaper_rx_hook) + (*net_shaper_rx_hook)(skb); + else + netif_rx(skb); lp->stats.rx_packets++; continue; } #---------------------------------------------------------------------- On Fri, 26 May 2000, Rubén Marrero wrote: > > Hola lista, hace mucho que no pasaba por acá :-) > > He estado haciendo pruebas con el módulo de shaper pero tiene > bastantes limitantes, lo que quiero es implementar (conseguir, integrar, > lo que sea),una solución para limitar ancho de banda, alguien tiene > algo de información que me pudiera ayudar?, se los agradecería mucho. > > Saludos.. > -- Armando Montiel Caba / Gerente de Sistemas MPSNet / Proyectos LinuxMPSNet Tel: (525)4-88-65-55 / SkyTel: 5536911 / ICQ:7690611 / amontiel en mpsnet net mx Av. Coyoacan #734 / Col. del Valle / C.P. 03100 / Fax: (525)4-88-65-00 http://www.hazclick.com/ La primera Red de Servicios en Internet