Commit Graph

68 Commits

Author SHA1 Message Date
067a11ab23 Move RawSocket and clean it up 2026-01-20 23:21:35 -05:00
6db4204bf0 Set don't fragment, and use random id 2026-01-20 22:08:10 -05:00
def8454012 Reconnect on timeout 2026-01-19 19:05:03 -05:00
4106679262 things are SOOOO good.... 2026-01-19 17:55:54 -05:00
01f44949f1 base64 encode payload and don't require connection playload 2026-01-19 17:16:29 -05:00
19126f1203 Attach BPF filter to get all the saprus messages 2026-01-19 17:04:08 -05:00
fec468c508 Complete handshake badly 2026-01-19 15:06:25 -05:00
9359fefdf7 Add real RawSocket deinit 2026-01-19 14:45:29 -05:00
f969d097ab Detect interface and use real mac 2026-01-19 14:43:44 -05:00
cc765dc91b Start adding connection message 2026-01-19 14:08:27 -05:00
abf2cfb366 use disc as default dest 2026-01-19 13:00:28 -05:00
c66b95bf89 Write relay message to the network 2026-01-19 12:59:21 -05:00
d7dedd243e construct full message 2026-01-19 12:30:08 -05:00
9947c21b4c Arrange bytes for relay 2026-01-19 12:12:23 -05:00
8a53c7366a 2026-01-18 17:20:44 -05:00
a33a96dafd start doing packet stuff 2026-01-17 21:38:23 -05:00
b3f1b00510 start porting to 0.16.0 2026-01-11 18:06:36 -05:00
7a8874ea6a doing some shenanigans
trying to start writing my own function to do raw socket connections
2026-01-10 21:17:46 -05:00
3abe3095e6 Remove prints 2025-10-12 21:40:23 -04:00
d6da3cd31b IT'S RIGHT 2025-10-12 21:13:42 -04:00
fe166d2106 Start breaking out net logic to NetWriter 2025-10-12 18:05:34 -04:00
439ee00444 Simplify RawSocketWriter
Does not need to use an allocator anymor.
Just uses the internal buffer properly.
2025-10-12 18:02:56 -04:00
c673401c2a Use writer instead of RawSocket in Client 2025-09-09 22:30:31 -04:00
74b0c9ef1f Use 0.15.1 for application 2025-09-09 20:19:48 -04:00
56b6b8a386 Use Client as var type instead of singleton 2025-05-11 13:52:42 -04:00
716fb466fa Remove allocation for messages 2025-05-10 21:46:53 -04:00
e84d1a2300 2025-05-10 21:46:53 -04:00
eacfaffb6b 2025-05-10 21:46:53 -04:00
dae66a0039 Starting real connections 2025-05-10 21:46:53 -04:00
683a2015b0 Use FAIL as the default dest if unable to parse 2025-04-27 18:03:06 -04:00
c34748dab3 Add CLI to specify dest for relay messages
The dest can be specified as a 4 char ASCII string, or as an IPv4 address.
2025-04-19 22:26:32 -04:00
23f7ad8f94 Break out the impl to a lib
This will make it easier to make a C library.
2025-04-13 17:14:18 -04:00
8779b29149 Do some things for invy 2025-04-13 16:41:20 -04:00
935e552a59 Don't print help after sending message 2025-04-06 13:08:09 -04:00
3424217539 Add comment for cli example reference 2025-04-06 13:08:09 -04:00
dcb962593d Allow caller to specify what kind of message to send with arg 2025-04-06 13:08:09 -04:00
c2f8c77c52 Nicer message for no response 2025-04-06 13:08:09 -04:00
6eef36e78a Handle network blocking well 2025-04-06 13:08:09 -04:00
a2072436aa Receive and print the response from the sentinel 2025-04-06 13:08:09 -04:00
b219fdc1f5 Start proper connection handshake 2025-04-06 13:08:09 -04:00
433a97fe5a Move binary back to zaprus
Also clean up the args for the aux functions by computing the type instead of passing it
2025-04-06 13:08:09 -04:00
448e900004 Break relay into a specific program 2025-04-06 13:08:09 -04:00
93161ff4bd Move types to their own file
Make it so I can specify the payload message
2025-04-06 13:08:09 -04:00
58ed9048da GREATLY improve clarity 2025-04-06 13:08:09 -04:00
88b2734886 Move dba to top level scope
This makes it so references to it are lazily compiled, so I can throw a compileError if it is referenced in the wrong mode.
2025-04-06 13:08:09 -04:00
e24220c98b add comments!!!!! 2025-04-06 13:08:09 -04:00
b1def25c69 move aux funcs back into the union
also move the body of the base64 handling back to the only place it is used now
2025-04-06 13:08:09 -04:00
d60d1fd335 Remove redundant comptime
Move edge together at the end of the switch
2025-04-06 13:08:09 -04:00
ef36894c70 Properly initialize the SaprusMessage fromBytes
Will actually use the provided packet type inline.
2025-04-06 13:08:09 -04:00
a0f6e08794 dedup some
Still need to clean up fromBytesAux
2025-04-06 13:08:09 -04:00