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