[pox-dev] Determine packets coming from which switch
Murphy McCauley
murphy.mccauley at gmail.com
Tue Jul 2 07:37:20 PDT 2013
On Jul 2, 2013, at 7:25 AM, nibble nibble wrote:
> I have a l2.learningSwitch and a network with a few switches. For every packet I receive I want to determine packet was received from which one of the switches. For this I used packet_in.in_port . But its does not seem that it indicate switch, because when I have two switches I received packets from port 1,2 and 3.
Right. It's indicating which port on the switch the packet was received on. Not which switch.
> Now my question is how to determine packet coming from switch x??
The PacketIn event has a .dpid attribute that holds the datapath ID of the switch.
-- Murphy
More information about the pox-dev
mailing list