[LARTC] help: can some body tell me the how to fill params of u32 filter in kernel ?

Linux Advanced Routing and Traffic Control

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

 



      i'm a chinese programmer, i want to write a system call to create an filter attach with some
 
qdisc, but i don't know the filter param's struct in the kernel.
 
i just know the struct
 
struct tc_u32_key
{
 __u32  mask;
 __u32  val;
 int  off;
 int  offmask;
};
 
struct tc_u32_sel
{
 unsigned char  flags;
 unsigned char  offshift;
 unsigned char  nkeys;
 
 __u16   offmask;
 __u16   off;
 short   offoff;
 
 short   hoff;
 __u32   hmask;
 
 struct tc_u32_key keys[0];
};
 
but i don't know how to fill it ,
 
the struct's mean?
 
can you tell me
 
               zxl zxlchinese@xxxxxxxxx
 
 

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