Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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>,
   }


i don't know what to say, so i'll just leave this here:

<3




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: