SHARE
TWEET

Untitled

a guest Mar 8th, 2016 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct dnshdr {
  2.         u_int16_t id;
  3. # if __BYTE_ORDER == __BIG_ENDIAN
  4.         u_int16_t qr:1;
  5.         u_int16_t opco:4;
  6.         u_int16_t aa:1;
  7.         u_int16_t tc:1;
  8.         u_int16_t rd:1;
  9.         u_int16_t ra:1;
  10.         u_int16_t zero:3;
  11.         u_int16_t rspc:4;
  12. # elif __BYTE_ORDER == __LITTLE_ENDIAN
  13.         u_int16_t rd:1;
  14.         u_int16_t tc:1;
  15.         u_int16_t aa:1;
  16.         u_int16_t opco:4;
  17.         u_int16_t qr:1;
  18.         u_int16_t rspc:4;
  19.         u_int16_t zero:3;
  20.         u_int16_t ra:1;
  21. # endif
  22.         u_int16_t qstc;
  23.         u_int16_t recc;
  24.         u_int16_t nmsc;
  25.         u_int16_t adrc;
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top