Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset adae30d in mainline for uspace/srv/net/dnsres/dns_std.h


Ignore:
Timestamp:
2012-08-12T16:27:30Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
f85ed4b
Parents:
d23d911
Message:

Work-in-progress message encoding/decoding, transport and query composition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/dnsres/dns_std.h

    rd23d911 radae30d  
    8585
    8686typedef struct {
     87        /** Identifier assigned by the query originator */
    8788        uint16_t id;
     89        /** QR, Opcode, AA, TC,RD, RA, Z, Rcode */
    8890        uint16_t opbits;
     91        /** Number of entries in query section */
    8992        uint16_t qd_count;
     93        /** Number of RRs in the answer section */
    9094        uint16_t an_count;
     95        /** Number of name server RRs in the authority records section */
    9196        uint16_t ns_count;
     97        /** Number of RRs in the additional records section */
    9298        uint16_t ar_count;
    9399} dns_header_t;
     
    100106enum dns_opbits {
    101107        OPB_QR          = 15,
    102         QPB_OPCODE_h    = 14,
    103         QPB_OPCODE_l    = 11,
    104         QPB_AA          = 10,
    105         QPB_TC          = 9,
    106         QPB_RD          = 8,
    107         QPB_RA          = 7,
    108         QPB_Z_h         = 6,
    109         QPB_Z_l         = 4,
    110         QPB_RCODE_h     = 3,
    111         QPB_RCODE_l     = 0
     108        OPB_OPCODE_h    = 14,
     109        OPB_OPCODE_l    = 11,
     110        OPB_AA          = 10,
     111        OPB_TC          = 9,
     112        OPB_RD          = 8,
     113        OPB_RA          = 7,
     114        OPB_Z_h         = 6,
     115        OPB_Z_l         = 4,
     116        OPB_RCODE_h     = 3,
     117        OPB_RCODE_l     = 0
    112118};
    113119
Note: See TracChangeset for help on using the changeset viewer.