summaryrefslogtreecommitdiffstats
path: root/ax25ipd/process.c
diff options
context:
space:
mode:
authorThomas Osterried <thomas@osterried.de>2005-10-30 10:31:40 +0000
committerThomas Osterried <thomas@osterried.de>2005-10-30 10:31:40 +0000
commitf3a4c67e9091c98596c19784040b88ad446a87cf (patch)
treed200e4c73346a29e72452a2a62e7263b8cdecbeb /ax25ipd/process.c
parent20a2c84a1c4488ae730bcb8c0ae52a12624c1848 (diff)
- 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.
Diffstat (limited to 'ax25ipd/process.c')
-rw-r--r--ax25ipd/process.c12
1 files changed, 10 insertions, 2 deletions
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);
+ }
}
/*