On first glance, yes, that looks correct. Then just cast arrbuff.data() to the appropriate type and pass it as the actions parameter.
-- Murphy On Oct 17, 2011, at 5:28 AM, andrea simeoni wrote: > Hi guys, > > I'm trying to instruct a switch to send a buffered packet out of a port. Then > I'm trying to use the function "send_openflow_packet(indpid, pie.buffer_id, > const ofp_action_header actions[] ...)". If I start from an > "ofp_action_list" how can I get the correct "ofp_action_header []"? > I tried the following code: > > ofp_action_list* act_list=new ofp_action_list(); > ofp_action* act = new ofp_action(); > > act->set_action_output(2, 0); // output on port 2 > act_list->action_list.push_back(*act); > > Array_buffer arrbuff(act_list->mem_size()); > act_list->pack(arrbuff.data()); > > It's correct? What is the correct "ofp_action_header []" parameter to pass to > the function? > > Thank you > -- > Andrea Simeoni > _______________________________________________ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev