Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
e1fac874
Commit
e1fac874
authored
Sep 29, 2016
by
garciay
Browse files
Bug fixed during Commsignia validation
parent
f1b6b105
Changes
2
Hide whitespace changes
Inline
Side-by-side
javasrc/adapter/org/etsi/its/adapter/layers/CommsigniaLayer.java
View file @
e1fac874
...
...
@@ -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
=
-
1
0
;
// Max value: -33dBm, RSU: -30dBm, Lab: -10dBm
private
static
final
int
TxPowerDbm
=
-
3
1
;
// 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
{
...
...
javasrc/adapter/org/etsi/its/adapter/layers/LayerFactory.java
View file @
e1fac874
...
...
@@ -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);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment