[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 693] trapping inoming ICMP packets
Hi,
I'm pretty new to the AltQ scene, so please excuse me if the below has been
addressed somewhere else and redirect me to the relevant reseources/FAQ.
I'm actually interested in implementing an adaptive router (based on CBQ or
PRIQ), which will be able to change its behaviour on its own in realtime.
Because the router needs to send out ICMP packets to measure certain network
parameters, I need to be able to
a. "trap" the returning ICMP replies, and
b. communicate these to qdisc accordingly.
A simple solution to (b) is to use standad ioctl calls and implement the
apporpriate handles in the qdisc module.
But I was wondering if there's a easy method to do (a), since AltQ only
filter outgoing packets, and I'm not interested in setting up a socket due
to performance reasons.
In short, I was hoping to trap raw ICMP packets on the incoming interface,
but got stuck on how to implement it efficiently under AltQ.
Any advises to my problems, or to the whole concept in general would be
greatly appreciated. Thank you.
-- regards
,,,
/'^'\
( o o )
--oOOo--(_)--oOOo---------------------------
|___|___|___|___|___|___|___|___|___|___|___|___|__
__|_.oooO_|___|___|___|___|___| Loong Chee-Yuh |_
|___( )___Oooo.___|___|___|_| chee-yuh@post1.com |_|
-----\ (----( )--------------------------------------
\_) ) /
(_/