Comment

Comment by plhk

You can do something similar with `libpnet` in rust:

   #[packet]
   struct Dns {
     id: u16be,
     qr: u1,
     opcode: u4,
     aa: u1,
     tc: u1,
     ...
     #[payload]
     data: Vec<u8>,
   }
parent plhk 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton