added some bash script to emit various BACnet enumerations for Wireshark validation

This commit is contained in:
skarg
2016-05-17 03:08:58 +00:00
parent 40f25d8898
commit 9704d9edb8
6 changed files with 34 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
export BACNET_APDU_RETRIES=0
export BACNET_APDU_TIMEOUT=0
for object_type in {0..127}
do
./bin/bacucov 1 2 ${object_type} 4 5 85 0 0
done
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
export BACNET_APDU_RETRIES=0
export BACNET_APDU_TIMEOUT=0
for property_id in {0..512}
do
./bin/bacrp --dnet 65535 0 8 0 ${property_id}
done
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
export BACNET_APDU_RETRIES=0
export BACNET_APDU_TIMEOUT=0
for reliability in {0..63}
do
./bin/bacucov 1 2 3 4 5 103 9 ${reliability}
done
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
export BACNET_APDU_RETRIES=0
export BACNET_APDU_TIMEOUT=0
for units in {0..255}
do
./bin/bacucov 1 2 3 4 5 117 9 ${units}
done
+1 -1
View File
@@ -2,4 +2,4 @@
for vendor_id in {0..999}
do
./bin/baciam 4194303 ${vendor_id}
done
done
+1 -1
View File
@@ -170,7 +170,7 @@ int main(
return 1;
}
if (cov_data.listOfValues->propertyIdentifier > MAX_BACNET_PROPERTY_ID) {
fprintf(stderr, "object-type=%u - it must be less than %u\r\n",
fprintf(stderr, "property-identifier=%u - it must be less than %u\r\n",
cov_data.listOfValues->propertyIdentifier,
MAX_BACNET_PROPERTY_ID + 1);
return 1;