Forum Discussion
Adrian_Pascalau
Nimbostratus
Aug 04, 2008if 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
- Nicolas_Menant
Employee
If i remember correctly matchclass againt an IP datagroup is more efficient than against a string datagroup.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects