Commit Graph

40 Commits

Author SHA1 Message Date
Juhani Krekelä 664a6eb838 Start working on the frontend 2019-07-10 22:10:14 +03:00
Juhani Krekelä 05b4f87597 Whoops 2019-07-10 21:21:46 +03:00
Juhani Krekelä 55fc6932e2 Ensure correct utf-8 2019-07-10 21:20:24 +03:00
Juhani Krekelä 6cd84902fc Whoooops 2019-07-10 20:30:28 +03:00
Juhani Krekelä cbc79587da Whoops 2019-07-10 20:26:47 +03:00
Juhani Krekelä a624ce5374 Ensure arithmetic will never overflow 2019-07-10 20:25:26 +03:00
Juhani Krekelä 40048618ee Get rid of debug fprintfs on the network side of code 2019-07-10 16:28:22 +03:00
Juhani Krekelä 98f52fba51 Notify others about going offline 2019-07-10 16:24:27 +03:00
Juhani Krekelä e7024d853b Fully implement sending 2019-07-10 16:22:02 +03:00
Juhani Krekelä dab1565f31 Use microsecond resolution in timeouts 2019-07-10 15:12:11 +03:00
Juhani Krekelä ab73580c23 Check msgid on receive and update caches 2019-07-10 14:00:44 +03:00
Juhani Krekelä 2d43d3273a Remove unnecessary errno = 0; 2019-07-10 13:38:40 +03:00
Juhani Krekelä 539dbf9f14 Add message sending and ack 2019-07-09 20:22:55 +03:00
Juhani Krekelä 3beda7742f Add randomness to the periodicity of broadcasts 2019-07-09 19:16:23 +03:00
Juhani Krekelä 87d0b33b3b Allow for status telling other end is going offline 2019-07-09 19:09:17 +03:00
Juhani Krekelä f678c5054f Send our own status periodically 2019-07-09 17:18:00 +03:00
Juhani Krekelä 541dd28a64 Randomize message ID start 2019-07-09 16:35:48 +03:00
Juhani Krekelä 43540d51bc Check padding 2019-07-09 16:22:55 +03:00
Juhani Krekelä 1f179e8b2b Whoops 2019-07-08 11:23:51 +03:00
Juhani Krekelä 4d03f397df Handle communicating message IDs 2019-07-07 19:37:51 +03:00
Juhani Krekelä e51066ebb8 Start work on status messages for Ethermess 2019-07-07 00:21:11 +03:00
Juhani Krekelä b75943d2e6 Act only on stuff directed at us or broadcast 2019-07-06 20:41:31 +03:00
Juhani Krekelä 211473b48e Start working on the network-facing side of Ethermess 2019-07-06 20:26:09 +03:00
Juhani Krekelä 829cd7fdfb Get rid of unused funcs in arp-request.c 2019-07-06 18:13:47 +03:00
Juhani Krekelä 7486c135a8 Add arp-request.c 2019-07-05 16:19:35 +03:00
Juhani Krekelä e29fd159d3 Looks like frames that seem to be runts are actually 100% legit 2019-07-05 16:07:18 +03:00
Juhani Krekelä fd277d5ec7 Process runt frames too, as long as they're long enough to contain full header 2019-07-05 14:58:33 +03:00
Juhani Krekelä a9fea6fee3 Drop privs when possible 2019-07-05 14:49:18 +03:00
Juhani Krekelä 42617ae88a Don't handle overlong frames like runt frames 2019-07-04 12:34:13 +03:00
Juhani Krekelä b5623511c6 Handle overlong frames like runt frames 2019-07-04 12:28:56 +03:00
Juhani Krekelä 8baa39bb8d Looks like we don't get FCS from the kernel, so get rid of CRC32 2019-07-04 12:26:03 +03:00
Juhani Krekelä b009bf6d37 Only read at max 1522 bytes of the 1522 byte buffer 2019-07-04 01:33:20 +03:00
Juhani Krekelä 4565c89b59 Do broken CRC32 2019-07-04 01:16:12 +03:00
Juhani Krekelä 489637433a fflush(stdout) after each line of output for pipes 2019-07-04 00:32:30 +03:00
Juhani Krekelä f9ee82b535 Add space between hex ethertype and explanation 2019-07-04 00:28:53 +03:00
Juhani Krekelä 3f571bdb27 Specify interface on the command line 2019-07-03 23:09:14 +03:00
Juhani Krekelä 4ce7f9c309 Display MAC addresses 2019-07-03 23:05:29 +03:00
Juhani Krekelä 17b8c26404 Add explanation for more common EtherTypes 2019-07-03 22:43:55 +03:00
Juhani Krekelä cf6137c734 Fucking integer promotion rules and signed char 2019-07-03 22:36:20 +03:00
Juhani Krekelä c56cf8fe47 First commit 2019-07-03 22:20:25 +03:00