Hi,
thank you very much. Sometimes life can be so easy. I just didn't see the answer :D I searched for wildcard in the source and found the following in src/nox/lib/core.py:

"Absent keys are interpretted as wildcards."

So the answer is: leaving the value empty should do the trick!

I am working in Python. I had only in mind that it was called "ANY" in the OpenFlow specification, so I only searched for ANY and tried to find relevant code.

Best regards

Bernd


On 26.03.2012 17:59, Hiroyasu Ohyama wrote:
Hi Bernd

In order to realize that, there is a thing called "Wildcard".

The OpenFlow specification v1.0 at "5.2.3 Flow Match Structures" helps you.

Concretely you can do as follows. I will assume that you create a
component in C/C++.

You would fill a ofp_flow_mod object when you install a flow into swtich.
To detect ANY value at tcp_source, you should set following value at
wildcards variable of ofp_match object which combined in ofp_flow_mod
object (see include/openflow/openflow/openflow.h).

ofm->match.wildcards = 0;
ofm->match.wildcards |= htonl(OFPFW_TP_SRC);

And following statement is needed to be interpreted as a tcp/ip microflow.

ofm->match.nw_proto = IP_TYPE_TCP;

I hope you will find it helpful.

De: Hiroyasu OHYAMA

2012年3月26日23:34 Bernd Wittefeld<[email protected]>:
Hi,
I couldn't find anything useful, so I hope someone over here can give me a
quick answer :)

I am installing flows on switches and I have to use an ANY value for the
Transport Layer source port, but I don't know what I have to insert there.
Is there some kind of global variable for this purpose?

Thanks in advance

Bernd

Reply via email to