Commit Graph

16 Commits

Author SHA1 Message Date
Juhani Krekelä 2d43d3273a Remove unnecessary errno = 0; 2019-07-10 13:38:40 +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