I'd like to intercept packets arriving at the switch from the controller (e.g. floodlight), and then do some processing for these packets. How can I go about that? Is there a good place I should start at?
Thanks
How about the snoop and monitor command documented here?
snoop switch
Connects to switch and prints to the console all OpenFlow messages received.
monitor switch
Connects to switch and prints to the console all OpenFlow messages received.
If you do not want with the OpenFlow messages but the packets, you can use wireshark from the command line.