Hi, Please refer to the following for extraction method of the type of OpenFlow message. http://ryu.readthedocs.io/en/latest/ofproto_base.html#base-class-for-openflow-messages
Also, Please refer to the chapter 7.1.1 of OpenFlow Spec version 1.3.5 for the type of OpenFlow message. Thanks, On 2016年09月10日 22:55, Maurizio Marrocco wrote: > Hi Ryu team. > The question is the following: How to extract message ofp_type (e.g. > OFPT_PACKET_OUT or OFPT_PACKET_IN) from openflow v1.3 ofp_header structure? > I would to do this statement: > > if(header(received PDU)==PacketOut) > do something. > > Have some reference in the documentation about this and in general to > process the packets? > PS: I'm using RYU 3.29 > Thanks. > Maurizio. > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Ryu-devel mailing list > Ryu-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel