Hey Jacob, I believe with the PacketProcessingListener interface you will have to decode the bytes by hand. There are some decoders in the l2switch project you can use, under the packethandler module. https://github.com/opendaylight/l2switch/tree/master/packethandler/implementation/src/main/java/org/opendaylight/l2switch/packethandler/decoders
These have corresponding yang models which generate interfaces you can implement to get notified of any ethernet packet, or specifically ARP, IPv4, IPv6, or ICMP. You can add the packethandler feature as a dependency in your project and packethandler-model as a maven dependency, then you should be able to implement these interfaces. Cheers, Evan On Mon, Jan 8, 2018 at 12:53 PM, Jamo Luhrsen <[email protected]> wrote: > +openflowplugin-dev mailing list. I think they'll be able to help. > > > On 01/08/2018 06:39 AM, Jacob Steadman wrote: > > Hi, > > > > > > > > I have been having trouble extracting packet information at the > controller… > > > > > > > > The packets are being forwarded to the controller OK, and I can see > payload and some other data. However, I am unable to > > extract any information useful to my purpose. > > > > > > > > For example, I’d like to monitor the UDP port for the packet, I can see > that… > > > > > > > > Packet.getMatch().getLayer4Match(); > > > > > > > > … looks as though it should UDP source & destination. > > > > > > > > The issue seems to be that Packet.getMatch() always returns null. > > > > > > > > I’ve been working on this for a while, and can’t seem to make any > progress, any help would be much appreciated. > > > > > > > > The basic code I’m using is as follows: > > > > > > > > @Override > > > > public void onPacketReceived(PacketReceived packetReceived){ > > > > LOG.info("JACOB Raw packet match.... {}", > packetReceived.getMatch()); > > > > > > > > } > > > > > > > > _______________________________________________ > > Discuss mailing list > > [email protected] > > https://lists.opendaylight.org/mailman/listinfo/discuss > > > _______________________________________________ > openflowplugin-dev mailing list > [email protected] > https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev >
_______________________________________________ openflowplugin-dev mailing list [email protected] https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
