Re: [Linux Diffserv] Re: [LARTC] ingress qdisc on kernel 2.2.21withds8 patch

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 12 Jul 2002, Andrei Boros wrote:

>
> Couldn't try the same thing under 2.4 because I have no machine with 2.4
> at my disposal.
>

fair enough.
BTW, now that i am actually thinking, another very stupid question -- if you
are trying to ingress police, do you have policing compiled in under QoS?
double check this. Infact the more i think about the more i believe this
may be your problem.

> How do I turn on debugging in the ingress code?
>

If you edit net/sched/sch_ingress.c at the very top you should see:

----------
#undef DEBUG_INGRESS

#ifdef DEBUG_INGRESS  /* control */
#define DPRINTK(format,args...) printk(KERN_DEBUG format,##args)
#else
#define DPRINTK(format,args...)
#endif

#if 0  /* data */
#define D2PRINTK(format,args...) printk(KERN_DEBUG format,##args)
#else
#define D2PRINTK(format,args...)
#endif
-----------

convert to:

---
#if 1
#define DPRINTK(format,args...) printk(KERN_DEBUG format,##args)
#else
#define DPRINTK(format,args...)
#endif

#if 1  /* data */
#define D2PRINTK(format,args...) printk(KERN_DEBUG format,##args)
#else
#define D2PRINTK(format,args...)
#endif
-----------

run your tests and look at dmesg.

cheers,
jamal




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux