Syslog efforts

This commit is contained in:
emanuel 2022-03-02 17:32:37 +00:00
parent 6ebddecd7b
commit 1d78616ff8
1 changed files with 4 additions and 1 deletions

View File

@ -71,9 +71,9 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
}
zmq_send(responder, &code, 1, 0);
syslog_debug("[facilities]<- received TI | size:%dB", msg_len);
TransportPacketIndication_t* tpi = &ti->choice.packet; // TODO
//
bool fwd = false;
@ -86,6 +86,7 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
switch (tpi->present) {
case TransportPacketIndication_PR_btp:
id = tpi->choice.btp.id;
syslog_debug("[facilities]<- received TI.packet.btp | id:%ld size:%dB", id, msg_len);
// Parse message
switch (tpi->choice.btp.destinationPort) {
case Port_cam:
@ -244,6 +245,7 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
break;
case TransportPacketIndication_PR_tcp:
id = tpi->choice.tcp.id;
syslog_debug("[facilities]<- received TI.packet.tcp | id:%ld size:%dB", id, msg_len);
sreq = calloc(1, sizeof(SecurityRequest_t));
sreq->present = SecurityRequest_PR_tlsRecv;
@ -316,6 +318,7 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
break;
case TransportPacketIndication_PR_udp:
id = tpi->choice.udp.id;
syslog_debug("[facilities]<- received TI.packet.udp | id:%ld size:%dB", id, msg_len);
break;
default: