From f3a4c67e9091c98596c19784040b88ad446a87cf Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Sun, 30 Oct 2005 10:31:40 +0000 Subject: - tun/tap support for ax25ipd - fclose() fix in config.c description of tun/tap: added a new fast and efficient link to the linux kernel ax25 stack, via the ethertap interface. ax25 goes directly to the bpqether interface in the kernel via ethertap/tuntap interfaces, which is a much better way than traditional kissattach to a ttyp/ptyp pair. --- ax25ipd/process.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'ax25ipd/process.c') diff --git a/ax25ipd/process.c b/ax25ipd/process.c index 0b1308c..34c0fc7 100644 --- a/ax25ipd/process.c +++ b/ax25ipd/process.c @@ -198,7 +198,11 @@ int l; } #endif } /* end of tnc mode */ - send_kiss(port, buf, l); + if (!ttyfd_bpq) + send_kiss(port, buf, l); + else { + send_bpq(buf, l); + } } /* @@ -240,7 +244,11 @@ void do_beacon() if (loglevel > 2) dump_ax25frame("do_beacon: ", bcbuf, bclen); stats.kiss_beacon_outs++; - send_kiss(0, bcbuf, bclen); + if (!ttyfd_bpq) + send_kiss(0, bcbuf, bclen); + else { + send_bpq(bcbuf, bclen); + } } /* -- cgit v1.2.3