Matching multiple protocols on one flow

asked 2014-11-04 02:51:22 -0700

Lorunification gravatar image

updated 2014-11-04 02:51:48 -0700

Hi everyone,

I am trying to program a flow that matches multiple protocols (e.g. tcp and udp). Is there a way to achieve this without creating two seperate flows and combining the results afterwards?

...
short ethertype = EtherTypes.IPv4.shortValue();
match.setField(new MatchField(MatchType.DL_TYPE, ethertype));

match.setField(new MatchField(MatchType.NW_SRC, srcIP, srcMask));

match.setField(new MatchField(MatchType.NW_PROTO, IPProtocols.UDP.byteValue()));
OR
match.setField(new MatchField(MatchType.NW_PROTO, IPProtocols.TCP.byteValue()));
...

Thanks in advance

edit retag flag offensive close merge delete