Hi,all,

I just made a simple controller and it can insert the Flow table.
I use the code as following:
            attrs = extract_flow(packet)
            attrs[core.IN_PORT] = inport
            attrs[core.DL_DST] = packet.dst
            actions = [[openflow.OFPAT_OUTPUT, [0, prt[0]]]]
            inst.install_datapath_flow(dpid, attrs, 120, 120,
                                       openflow.OFP_FLOW_PERMANENT, actions,
                                       bufid, openflow.OFP_DEFAULT_PRIORITY,
                                       inport, buf)
When I send some packets from one host to another, I get the flow tables in
the attachment. I am curious about where the TCP Port AND TCP Dest come
from. Why the TCP Port is 8 in one flow entry.  Are they assigned in some
functions?

Thanks

Weiyang

<<attachment: Flowtable.jpg>>

Reply via email to