This commit is contained in:
emanuel 2021-05-17 16:41:09 +01:00
parent 87ba3e53ac
commit 17572f4457
1 changed files with 6 additions and 5 deletions

View File

@ -137,7 +137,7 @@ cleanup:
}
int cam_gen(void* ctx) {
printf("Testing CAM generation:\n");
printf("Testing CAM generation:\n"); fflush(stdout);
void* transport_socket = zmq_socket(ctx, ZMQ_REP);
@ -152,15 +152,15 @@ int cam_gen(void* ctx) {
BTPDataRequest_t* bdr = NULL;
asn_dec_rval_t dec = asn_decode(NULL, ATS_CANONICAL_OER, &asn_DEF_BTPDataRequest, (void**) &bdr, buffer+1, 2047);
if (dec.code) {
printf(" FAIL\n");
printf(" FAIL\n"); fflush(stdout);
return 1;
}
printf(" - Received CAM BDR (%ldB)\n", bdr->data.size);
printf(" - Received CAM BDR (%ldB)\n", bdr->data.size); fflush(stdout);
if (bdr->destinationPort == Port_cam) {
printf(" OK\n");
printf(" OK\n"); fflush(stdout);
} else {
printf(" FAIL\n");
printf(" FAIL\n"); fflush(stdout);
return 1;
}
@ -170,6 +170,7 @@ int cam_gen(void* ctx) {
int forward_up(void* ctx) {
printf("Testing forwarding up:\n");
fflush(stdout);
BTPDataIndication_t* bdi = calloc(1, sizeof(BTPDataIndication_t));
char* cam_hex = "02027dfddf4403ca4059bba5f38cc40dba9ffffffc2230eff200e11fc0078082a88a8337fee3fff600004dffea800618d08018efff14003ac68800c77ff8e002263460063bffd1000fb1a30031dffe2800958d30018efff840048c68800c77ffae002c63480063bffbd001a31a40031dfff28002d8cf0018c0";