[nox-dev] some confusions about the inport parameter

2011-03-28 Thread karim torkmen
Hi, I am a little bit confused about the inport parameter in : * send_openflow(dpid, bufid, buf, openflow.OFPP_FLOOD, inport) And in: * install_datapath_flow(dpid, flow, 5, 0, actions, bufid, openflow.OFP_DEFAULT_PRIORITY, inport, packet) Do they design the port of communication between the

Re: [nox-dev] some confusions about the inport parameter

2011-03-28 Thread Kyriakos Zarifis
Hi Karim, 'inport' actually refers to a different thing in each case: * send_openflow(dpid, bufid, buf, openflow.OFPP_FLOOD, inport) send_openflow is used to inject a packet in the network, and send it out the 'dpids's port(s) described the 4th parameter. The switch should treat the packet as

Re: [nox-dev] some confusions about the inport parameter

2011-03-28 Thread karim torkmen
Thanks Kyriakos :) In fact, my confusion came from the fact that the inport is got from registering to the packet_in event. So when you register you get the inport, however this inport is used for two different cases. So, in the case where the inport is got from registering to the packet_in