Hi Alan,
On 2017年03月01日 08:02, Alan Helal wrote:
> Hello guys. Im trying to drop all the packets except the ones from a
> whitelist. Here is the code that Im using:
>
> @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)
> def _packet_in_handler(self, ev):
> global flag1
>
Hello guys. Im trying to drop all the packets except the ones from a
whitelist. Here is the code that Im using:
@set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)
def _packet_in_handler(self, ev):
global flag1
msg = ev.msg
datapath = msg.datapath
ofproto