1 Jun 2003 20:17
RE: filter expressions and flows
Carter Bullard <carter <at> qosient.com>
2003-06-01 18:17:33 GMT
2003-06-01 18:17:33 GMT
Hey Jose, Sorry for the delay in responding! The filters do have a personality of their own, but the rules are pretty simple. Since the starting base for the filter compiler was tcpdump, there are a lot of similarities, but the ra* programs have a different abstraction to work with, so there are some real differences. The filter expression "host x.y.z.w" implies "ip host x.y.z.w", that is why "arp and host x.y.z.w" is going to give you an expression error. But "arp host x.y.z.w" is stating that you want the host value returned in an arp request, so the and is ok! The filter wants to fill in the blanks, if any are left out, such as "host x.y.z.w". What kind of host? protocol? version? Without this info, it has to fill in the blanks. Now the error "ip proto tcp" comes from the fact that "tcp" generates "ip proto tcp" in the lexical analyzer, which then generates "ip proto ip proto tcp". This should be fixed, but since tcpdump generates the same error here, suggests that there is a fundamental problem with the compiler strategy. But I'll look into it. You ask, > It seems that using the host particle alone is the same as > "ip host" and > again this is different from tcpdump.(Continue reading)
RSS Feed