(cc'ing nox-dev)

If you want to drop packets at the controller, then yes, you can simply "return CONTINUE" in a packet handler after checking the type.

If you'd like packets to be dropped at the switch, you should install a flow entry with no actions which matches on the packets you'd like dropped. This is preferable since you don't exhaust bandwidth to the controller for packets which will ultimately be dropped.


Thanks Martin. I was looking the code of pyswitch.py and I found this:

# don't forward lldp packets if packet.type == ethernet.LLDP_TYPE:
        return CONTINUE

So, if I want to drop any kind of packet is just to specify its type? Like use "packet.type == ethernet.TCP_TYPE" to drop packet of tcp protocol? Thank you again for help me.

--
Ricardo Bennesby da Silva
Computer Science Dapartment - UFAM


_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to