Thanks for your prompt reply, Kenjiro.
I found there are two functions in libaltq/parser.c: cbq_add_filter(), cbq_delete_filter().
What's the difference between these two fuctions and cbq_add_filter() and cbq_delete_filter() in altq/altq_cbq.c.
Thanks,
----------------------------------------
Hao Zhang
Advanced Wireless Network Technology
Nortel Networks
Tel: 613-765-3972 (ESN 395)
Fax: 613-763-2686
email: zhanghao@nortelnetworks.com
-----Original Message-----
From: Kenjiro Cho [mailto:kjc@csl.sony.co.jp]
Sent: Tuesday, August 15, 2000 4:49 AM
To: altq@csl.sony.co.jp; Zhang, Hao [WDLN2:AN22:EXCH]
Subject: [altq 517] Re: define a filter
Hao Zhang wrote:
> I am now working on the development using CBQ code. now filter is defined in
> terms of 5 parameters <dst_addr, dst_port, src_addr, src_port, proto> and
> tos field. I want to define a filte in terms of not only adove mentioned
> things, but something else. So I have two questions.
>
> 1) Can you tell me what part of code reads the fitler parameters from
> altq.conf file.
libaltq/parser.c (filter_parser())
> 2) in altq_cbq.h:
>
> #define CBQ_ADD_FILTER _IOWR('Q', 3, struct cbq_add_filter)
>
> Is Q a char or something else? I couldn't find the defination of Q
It's just a character to identify an ioctl group. An ioctl group
character is encoded into an ioctl number. see sys/sys/ioccom.h.
-Kenjiro