Saving progress

This commit is contained in:
Simon Kelley
2013-12-13 15:36:55 +00:00
parent a9b55837dc
commit 9d633048fe
3 changed files with 40 additions and 27 deletions

View File

@@ -82,6 +82,8 @@ struct dns_header {
#define HB4_RCODE 0x0f
#define OPCODE(x) (((x)->hb3 & HB3_OPCODE) >> 3)
#define SET_OPCODE(x, code) (x)->hb3 = ((x)->hb3 & ~HB3_OPCODE) | code
#define RCODE(x) ((x)->hb4 & HB4_RCODE)
#define SET_RCODE(x, code) (x)->hb4 = ((x)->hb4 & ~HB4_RCODE) | code