New "kissutil" application.

This commit is contained in:
wb2osz 2017-09-11 22:35:44 -04:00
parent 00cdf7b18d
commit 30c52862a9
2 changed files with 10 additions and 8 deletions

View File

@ -1117,6 +1117,7 @@ void app_process_rec_packet (int chan, int subchan, int slice, packet_t pp, alev
/* Send to another application if connected. */
// TODO: Put a wrapper around this so we only call one function to send by all methods.
// We see the same sequence in tt_user.c.
int flen;
unsigned char fbuf[AX25_MAX_PACKET_LEN];
@ -1124,9 +1125,9 @@ void app_process_rec_packet (int chan, int subchan, int slice, packet_t pp, alev
flen = ax25_pack(pp, fbuf);
server_send_rec_packet (chan, pp, fbuf, flen); // AGW net protocol
kissnet_send_rec_packet (chan, fbuf, flen, -1); // KISS TCP
kissserial_send_rec_packet (chan, fbuf, flen, -1); // KISS serial port
kisspt_send_rec_packet (chan, fbuf, flen, -1); // KISS pseudo terminal
kissnet_send_rec_packet (chan, KISS_CMD_DATA_FRAME, fbuf, flen, -1); // KISS TCP
kissserial_send_rec_packet (chan, KISS_CMD_DATA_FRAME, fbuf, flen, -1); // KISS serial port
kisspt_send_rec_packet (chan, KISS_CMD_DATA_FRAME, fbuf, flen, -1); // KISS pseudo terminal
/*
* If it came from DTMF decoder, send it to APRStt gateway.

View File

@ -60,7 +60,7 @@
#include "kiss.h"
#include "kissserial.h"
#include "kissnet.h"
#include "kiss_frame.h"
/*
* Information kept about local APRStt users.
@ -892,13 +892,14 @@ static void xmit_object_report (int i, int first_time)
int flen;
// TODO1.3: Put a wrapper around this so we only call one function to send by all methods.
// We see the same sequence in direwolf.c.
flen = ax25_pack(pp, fbuf);
server_send_rec_packet (save_tt_config_p->obj_recv_chan, pp, fbuf, flen);
kissnet_send_rec_packet (save_tt_config_p->obj_recv_chan, fbuf, flen, -1);
kissserial_send_rec_packet (save_tt_config_p->obj_recv_chan, fbuf, flen, -1);
kisspt_send_rec_packet (save_tt_config_p->obj_recv_chan, fbuf, flen, -1);
kissnet_send_rec_packet (save_tt_config_p->obj_recv_chan, KISS_CMD_DATA_FRAME, fbuf, flen, -1);
kissserial_send_rec_packet (save_tt_config_p->obj_recv_chan, KISS_CMD_DATA_FRAME, fbuf, flen, -1);
kisspt_send_rec_packet (save_tt_config_p->obj_recv_chan, KISS_CMD_DATA_FRAME, fbuf, flen, -1);
}
if (first_time && save_tt_config_p->obj_send_to_ig) {