Hi,
 if you want to send packet back the same port, you need to explicitely use
OFPP_IN_PORT as a port number. This is to prevent packets looping in the
network as usually sending packets back is a bad idea (i.e., the peer
switch would probably send the packet again to us)

Peter

On Tue, Mar 3, 2015 at 2:35 PM, chaitanya tanwar <chaitanya.tan...@gmail.com
> wrote:

> Hello everyone,
>
> Lets say we have switch s1, connected to h1 through port 1 and connected
> to s2 through port 2.
>
> As a packet arrives at port 2 from s2 to s1. I am modifying its
> destination mac and ip addresses and sending that back from the same port
> i.e. output port 2.
>
> But wireshark is not showing the same. Packet is arriving at port 2 from
> s2 to s1 but not going anywhere after that.
>
> Is there any trivial problem in sending the packet back through same port
> from where it has arrived?
> Because I have tried the same thing but sending the packet to port 1 and
> this time packet is going to port 1 but in case where I am sending it back
> through same port, Its not happening.
>
> Best Regards.
>

Reply via email to