mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 21:17:59 +00:00
fixing NoAction event
This commit is contained in:
parent
e463c0cf76
commit
9054822347
@ -80,8 +80,8 @@ public class EvNoAction {
|
|||||||
specIDEvent.getVersionMinor());
|
specIDEvent.getVersionMinor());
|
||||||
specErrataVersion = specIDEvent.getErrata();
|
specErrataVersion = specIDEvent.getErrata();
|
||||||
} else if (signature.contains("StartupLocality")) {
|
} else if (signature.contains("StartupLocality")) {
|
||||||
noActionInfo += " Signature = StartupLocality: ";
|
noActionInfo += " Signature = StartupLocality";
|
||||||
noActionInfo += "\n " + getLocality(eventData);
|
noActionInfo += "\n StartupLocality = " + getLocality(eventData);
|
||||||
} else if (signature.contains("NvIndexInstance")) {
|
} else if (signature.contains("NvIndexInstance")) {
|
||||||
NvIndexInstanceEventLogData nvIndexInstanceEvent = new NvIndexInstanceEventLogData(eventData);
|
NvIndexInstanceEventLogData nvIndexInstanceEvent = new NvIndexInstanceEventLogData(eventData);
|
||||||
noActionInfo += nvIndexInstanceEvent.toString();
|
noActionInfo += nvIndexInstanceEvent.toString();
|
||||||
@ -118,24 +118,25 @@ public class EvNoAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getLocality(final byte[] eventData) {
|
private String getLocality(final byte[] eventData) {
|
||||||
|
String localityInfo = "";
|
||||||
byte[] localityBytes = new byte[1];
|
byte[] localityBytes = new byte[1];
|
||||||
System.arraycopy(eventData, 2, localityBytes, 0, 1);
|
System.arraycopy(eventData, 16, localityBytes, 0, 1);
|
||||||
int locality = HexUtils.leReverseInt(localityBytes);
|
int locality = HexUtils.leReverseInt(localityBytes);
|
||||||
|
|
||||||
switch (locality) {
|
switch (locality) {
|
||||||
case 0:
|
case 0:
|
||||||
noActionInfo += "Locality 0 without an H-CRTM sequence";
|
localityInfo += "Locality 0 without an H-CRTM sequence";
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
noActionInfo += "Locality 3 without an H-CRTM sequence";
|
localityInfo += "Locality 3 without an H-CRTM sequence";
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
noActionInfo += "Locality 4 with an H-CRTM sequence initialized";
|
localityInfo += "Locality 4 with an H-CRTM sequence initialized";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
noActionInfo += "Startup Locality unknown";
|
localityInfo += "Unknown";
|
||||||
}
|
}
|
||||||
return noActionInfo;
|
return localityInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user