I'm working with POX for the first time. What I'm trying to do is install rules in a switch to forward the packets that they were sended originally to hosts that they are connected to this switch.
H1---S1----S2---H3
|---H4
Example: H1 send a certain packet to H3 and H4 that when they arrive to S2 they have to be forwarded to the controller. What I had in mind is to install these rules when I start the controller but to do that I need to get the hosts connected to the switches.
Are there some method to know the hosts connected to a given switch?