Adrian_Pascalau
Aug 04, 2008Nimbostratus
if statement weight
Hi,
I need to check all the packets comming from certain vlans/subnets, thus I am wondering which check is lighter from LTM point of view: using LINK:vlan_id inside the if statement, or IP:client_addr?
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals $::mySubnet] }{
// do something
}
}
or
when CLIENT_ACCEPTED {
if { [LINK::vlan_id] equals $::myVlan }{
// do something
}
}
Thank you in advance.
Adrian