public void process(UdpPacket p) {
packetTuple.setUdpFields(p);
}
};
UdpDecoder udpDecoder = new UdpDecoder(new UdpPortProtocolMapper()) {
@Override
public void process(Ipv4Packet packet) {
// nothing really
super.process(packet);
}
};
udpDecoder.registerUdpProcessor(udpProcessor);
eth.register(EthernetType.IPV4, ipDecoder);
ipDecoder.register(InternetProtocol.TCP, tcpDecoder);
ipDecoder.register(InternetProtocol.UDP, udpDecoder);
}