Commit graph

29 commits

Author SHA1 Message Date
ebbfb50b1c Use KISS framing for raw sockets
Use KISS framing for raw sockets to avoid multiple write() calls from
being buffered, which caused read() on the other end of a file
descriptor to read more than frame at once
2024-03-01 00:20:46 -05:00
b281925eba Significantly simplify dictionaries
Significantly simplify dictionaries so that dictionary keys are always
uint32_t; this number can be an arbitrary integer, be it a file
descriptor, for instance, or a hashed value
2024-03-01 00:20:46 -05:00
3e99af64d1 Use tcdrain() to flush frames to raw socks 2024-03-01 00:20:46 -05:00
84ae427037 Move raw frame capture to patty_ax25_if
Move raw frame interface capture to patty_ax25_if, patty_ax25_sock; this
resolves the issue wherein only bytes received, not sent, would be
captured by a raw socket bound to a specific interface with setsockopt()
2024-03-01 00:20:46 -05:00
5a3660450f Get rid of patty_list_iterator (too expensive) 2024-03-01 00:20:46 -05:00
17b2313edc Keep accounting of RX/TX bytes, frames 2024-03-01 00:20:46 -05:00
bdb73c8805 Making significant headway towards a working server 2024-03-01 00:20:46 -05:00
4aced9e9c1 ...I've been busy. 2024-03-01 00:20:46 -05:00
d265ce8756 More stuff 2024-03-01 00:20:46 -05:00
eb45bd192d Just need to make a damn client/server test already 2024-03-01 00:20:46 -05:00
c4fa41dab4 I am getting AWFULLY close to being able to run this code 2024-03-01 00:20:46 -05:00
d2e278f715 Massive refactoring afoot 2024-03-01 00:20:46 -05:00
fa3f4a2e0e Start of massive refactor 2024-03-01 00:20:46 -05:00
34afdba9e4 Suppress int/void* cast compiler errors 2024-03-01 00:20:46 -05:00
a8db220bbd Major refactor WIP 2024-03-01 00:20:46 -05:00
68a01bb992 Fix LLVM warnings 2024-03-01 00:20:46 -05:00
2e0adee54e Remove _unix suffix from patty_kiss_tnc_fd_unix() 2024-03-01 00:20:46 -05:00
153dc17c7b Start to whittle down src/ax25.c, include/ax25.h 2024-03-01 00:20:46 -05:00
66e5de9d6c Make patty_kiss_tnc_open() use default buffer size
Make patty_kiss_tnc_open() use default buffer size

Other changes:

    * Make src/decode.c no longer require a filename to use as a TNC
2024-03-01 00:20:46 -05:00
4e5634cbc7 My final commit 2024-03-01 00:20:46 -05:00
53791bf21d Ahh, that's better 2024-03-01 00:20:46 -05:00
5fb55973ad Manage the bits that'll go into select(2) or whatevs 2024-03-01 00:20:46 -05:00
a76ea9125a Just a little hit 2024-03-01 00:20:46 -05:00
13cfe03cbe Walt, we need to talk 2024-03-01 00:20:46 -05:00
ff76e77336 Stub out patty_ax25_next_event() 2024-03-01 00:20:46 -05:00
6adb4f098b I think that's much nicer 2024-03-01 00:20:46 -05:00
0d40883e59 Can you feel heavy metal??? 2024-03-01 00:20:46 -05:00
e85df9e29e Well, it does compile 2024-03-01 00:20:46 -05:00
1397c7e479 Oh cock 2024-03-01 00:20:46 -05:00