Commit e1fac874 authored by garciay's avatar garciay
Browse files

Bug fixed during Commsignia validation

parent f1b6b105
......@@ -32,7 +32,7 @@ public class CommsigniaLayer extends Layer implements IEthernetSpecific {
private static final int SourcePort = 7943;
private static final int ItsAid = 5;
private static final int InterfaceID = 2;
private static final int TxPowerDbm = -10; // Max value: -33dBm, RSU: -30dBm, Lab: -10dBm
private static final int TxPowerDbm = -31; // Max value: -33dBm, RSU: -30dBm, Lab: -10dBm
private static String pcapFilter = null;
/**
......@@ -196,10 +196,10 @@ public class CommsigniaLayer extends Layer implements IEthernetSpecific {
}
byte[] packet = ByteHelper.concat(
dst,
localMacAddress,
ByteHelper.intToByteArray(upperLayerFrameType, 2),
message
dst,
localMacAddress,
ByteHelper.intToByteArray(upperLayerFrameType, 2),
message
);
try {
......
......@@ -40,6 +40,7 @@ public class LayerFactory {
layers.put("GN", GnLayer.class);
layers.put("G5", G5Layer.class);
layers.put("ETH", EthernetLayer.class);
layers.put("UdpIp", UdpIpLayer.class);
layers.put("CSG", CommsigniaLayer.class);
// layers.put("Loopback", LoopbackLayer.class);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment