Hi Chitra, The ofp_flow_mod struct has an array of actions (i.e., struct ofp_action_header actions[0]). So, you can append one action after another and send a single flow_mod.
Hope I am being clear. Regards KK Warning: sending two separate flow_mod would be the wrong way. 2009/10/29 Chitra Muthukrishnan <chi...@cs.wisc.edu>: > Hi, > In most of the examples that I see, the controller sends an ofp_flow_mod > instructing the switch to take 1 action for a rule. > I am wondering how to specify 2 actions for a rule. Do we just send two > messages- 1 for each action? > Or is there some other message format to specify 2 actions for a match? > > -Chitra > > > On Thu, Oct 29, 2009 at 10:46 AM, kk yap <yap...@stanford.edu> wrote: >> >> Hi Chitra, >> >> You have to construct a ofp_flow_mod message (specified in openflow.h) >> and send it to the switch. In NOX, I typically use a boost shared >> array to hold the message, then it is just a send_openflow_command. I >> cannot find a very clean segment of code, but you can look at >> routing.cc for try to follow through it. >> >> Regards >> KK >> >> 2009/10/29 Chitra Muthukrishnan <chi...@cs.wisc.edu>: >> > I believe the controller can specify many actions to be taken for a >> > matching >> > packet. >> > I need a switch to send some packets to the controller and forward it to >> > an >> > output port. >> > Can someone tell me how we can construct such rules with nox? >> > >> > -Chitra >> > >> > _______________________________________________ >> > nox-dev mailing list >> > nox-dev@noxrepo.org >> > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org >> > >> > > > _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org