mirror of https://github.com/wb2osz/direwolf.git
New "kissutil" application.
This commit is contained in:
parent
00cdf7b18d
commit
30c52862a9
|
@ -1117,16 +1117,17 @@ 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];
|
||||
|
||||
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
|
||||
server_send_rec_packet (chan, pp, fbuf, flen); // AGW net protocol
|
||||
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.
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue