Yes, attrs = extract_flow(packet) sets attrs to match all the fields in the packet, that's why the flow_entry is matching on L3/L4 info.
Thus "attrs[core.DL_DST] = packet.dst" is not needed. Aaron On Thu, Apr 12, 2012 at 6:06 PM, Weiyang Mo <[email protected]> wrote: > 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 > > -- Aaron O. Rosen Masters Student - Network Communication 306B Fluor Daniel
