Saving progress

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

No files matched your search

+2
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