Commit graph

220 commits

Author SHA1 Message Date
c853b79529 Remove unnecessary #include <stdio.h> 2024-03-01 00:20:46 -05:00
36bd5c9a44 Delete unnecessary example src/ptmx.c 2024-03-01 00:20:46 -05:00
65bfa95820 s/socket/fd/ for all such named members, variables 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
c6aac035e1 Add proto arg to patty_ax25_sock_new()
Other changes:

    * Remove proto arg from patty_ax25_sock_send() and
      patty_ax25_sock_write(); instead, use the proto member of
      patty_ax25_sock
2024-03-01 00:20:46 -05:00
085ac4e650 Implement missing functions in src/sock.c
Implement the following missing functions in src/sock.c:

    * patty_ax25_sock_pty()

    * patty_ax25_sock_bind_if()
2024-03-01 00:20:46 -05:00
ffcc171c48 Remove PATTY_AX25_SOCK_NONBLOCK option 2024-03-01 00:20:46 -05:00
484e68e417 Remove commented cruft from src/sock.c 2024-03-01 00:20:46 -05:00
f835f19e53 Move some stuff, remove some damn labels 2024-03-01 00:20:46 -05:00
2b1bc4c30e Well, I have WORKING FREAKING SESSIONS BAYBEE 2024-03-01 00:20:46 -05:00
22bf692a61 SO BLOODY CLOSE 2024-03-01 00:20:46 -05:00
94f073c38d Add some error message for some what-the-fuck-styled errors 2024-03-01 00:20:46 -05:00
a60e562fdb Factor out code for handling SABM frames 2024-03-01 00:20:46 -05:00
17b2313edc Keep accounting of RX/TX bytes, frames 2024-03-01 00:20:46 -05:00
7fd05f607a Huh, I managed to make something nice 2024-03-01 00:20:46 -05:00
d5ee0c7a9e No need to make a big fuss 2024-03-01 00:20:46 -05:00
eb261c9890 Don't hardcode those values there 2024-03-01 00:20:46 -05:00
a6666b4de4 Don't need that, either 2024-03-01 00:20:46 -05:00
4ff1f1a714 Nomenclature is important 2024-03-01 00:20:46 -05:00
d98249ef77 Don't need to do that 2024-03-01 00:20:46 -05:00
255e15fb7b Minor formatting foibles 2024-03-01 00:20:46 -05:00
e30f4bfb07 Fix regression decoding control bytes 2024-03-01 00:20:46 -05:00
cc21e6342b Whoops 2024-03-01 00:20:46 -05:00
b9c3568c43 This is a slog with no real end 2024-03-01 00:20:46 -05:00
89195bde69 Holy crap, getting deeper and deeper 2024-03-01 00:20:46 -05:00
b242cf9285 Hmmst, coalescing upon something 2024-03-01 00:20:46 -05:00
4478241319 I'm in a world of hurt 2024-03-01 00:20:46 -05:00
d983672619 Fix address writing 2024-03-01 00:20:46 -05:00
cec916a44a Fix SABM control field test macro 2024-03-01 00:20:46 -05:00
bdb73c8805 Making significant headway towards a working server 2024-03-01 00:20:46 -05:00
22366f2d0c Need some shit for managing routing tables 2024-03-01 00:20:46 -05:00
94b9a9d481 Start working on routing table 2024-03-01 00:20:46 -05:00
4aced9e9c1 ...I've been busy. 2024-03-01 00:20:46 -05:00
8dd5864e67 Gettin' there 2024-03-01 00:20:46 -05:00
8d3c24696e Don't forget to watch client/server socket 2024-03-01 00:20:46 -05:00
36a7de1b2c unlink() stale sockets 2024-03-01 00:20:46 -05:00
696ce80b5b God, this might be workable at some point 2024-03-01 00:20:46 -05:00
17be963b48 Getting slightly closer 2024-03-01 00:20:46 -05:00
d265ce8756 More stuff 2024-03-01 00:20:46 -05:00
2491f85c62 Rearrange patty/ax25/sock.h for more logical layout 2024-03-01 00:20:46 -05:00
58e9d365d5 Remove usage of non-portable FD_COPY() 2024-03-01 00:20:46 -05:00
df466dc02b Slightly rethinking something 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
aa1ccd792a Don't need that...for the time being 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
116f4f9f6b Start approaching something I can conceptually write working code around 2024-03-01 00:20:46 -05:00
5607dbede6 Split patty_ax25_sock into patty/ax25/sock.h 2024-03-01 00:20:46 -05:00
ac8b239ed8 Thinking out loud here 2024-03-01 00:20:46 -05:00
1240061aa8 Add missing src/call.c 2024-03-01 00:20:46 -05:00
ac55d13057 Writing a network stack from scratch is extremely tiring 2024-03-01 00:20:46 -05:00