package org.krakenapps.pcap.decoder.smb.comparser; import org.krakenapps.pcap.decoder.smb.SmbSession; import org.krakenapps.pcap.decoder.smb.request.NtCancelRequest; import org.krakenapps.pcap.decoder.smb.response.NtCancelResponse; import org.krakenapps.pcap.decoder.smb.structure.SmbData; import org.krakenapps.pcap.decoder.smb.structure.SmbHeader; import org.krakenapps.pcap.util.Buffer; import org.krakenapps.pcap.util.ByteOrderConverter; //0xA4 public class NtCancelParser implements SmbDataParser{ @Override public SmbData parseRequest(SmbHeader h , Buffer b , SmbSession session) { NtCancelRequest data= new NtCancelRequest(); data.setWordCount(b.get()); data.setByteCount(ByteOrderConverter.swap(b.getShort())); return data; } @Override public SmbData parseResponse(SmbHeader h , Buffer b ,SmbSession session) { NtCancelResponse data = new NtCancelResponse(); return data; } }