I don't understand why you want to do this by intercepting output ports. Define a new action to do what you want, then use that action.
On Mon, Jan 26, 2015 at 11:54:48AM +0530, Sree Vidya S D wrote: > Hi Ben, > > thanks for responding! > > I am embedding multiple path information from source to destination in ip > and mac headers > > So I am sending flow mod messages from the controller to mininet > > In > > I use a random number to select one among the n path information I have > embedded in the headers > > I understood the control flow as > > a) The packet enters from switch from the host into the function > "void ovs_dp_process_received_packet(struct vport *p, struct sk_buff *skb)" > > b) The actions get applied on these packets due to the function call > "ovs_dp_process_packet_with_key(skb,&key,false)" > (As far as my understanding does this . I am not sure whether Iam right > here) > > c) I was thinking if skb contains the modified packet after the call to " > ovs_dp_process_packet_with_key(skb,&key,false)" > then i could extract the output port from the headers and do rest of the > processing > > On Mon, Jan 26, 2015 at 3:49 AM, Ben Pfaff <b...@nicira.com> wrote: > > > What's your actual goal? > > > > On Mon, Jan 26, 2015 at 12:50:16AM +0530, Sree Vidya S D wrote: > > > Thanks a lot Ben! > > > > > > But I need little more help over here. > > > > > > How do I get my modified packet ? Is that possible? > > > > > > On Mon, Jan 26, 2015 at 12:45 AM, Ben Pfaff <b...@nicira.com> wrote: > > > > > > > On Sun, Jan 25, 2015 at 11:33:15PM +0530, Sree Vidya S D wrote: > > > > > In this particular function body theres a call to function > > > > > > > > > > ovs_dp_process_packet_with_key(skb,&key,false); ---2 > > > > > > > > > > So when the control returns from function 2 does skb contains the > > packet > > > > > with the actions applied ?? > > > > > > > > > > say i specify action as modify the mac header... in dat case does skb > > > > > contain the modified packet?? > > > > > > > > No, it looks to me like the packet has been freed at that point. > > > > > > > > > > > > > > > > -- > > > -- > > > > > > *????g?????????, sreevidya* > > > > > > -- > -- > > *????g?????????, sreevidya* _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev