do not assume that dns structs are aligned
[project/mdnsd.git] / dns.h
diff --git a/dns.h b/dns.h
index 47727ddb667e8142e1fac6507c0ab49144e6c449..4425d4cb8a36ae338b077c78bd19721f63ea25e1 100644 (file)
--- a/dns.h
+++ b/dns.h
@@ -33,6 +33,7 @@
 #define MCAST_ADDR6            "ff02::fb"
 #define MCAST_PORT             5353
 
+#define CLASS_FLUSH            0x8000
 #define CLASS_UNICAST          0x8000
 #define CLASS_IN               0x0001
 
@@ -54,19 +55,19 @@ struct dns_srv_data {
        uint16_t priority;
        uint16_t weight;
        uint16_t port;
-} __attribute__((packed, aligned(2)));
+} __attribute__((packed));
 
 struct dns_answer {
        uint16_t type;
        uint16_t class;
        uint32_t ttl;
        uint16_t rdlength;
-} __attribute__((packed, aligned(2)));
+} __attribute__((packed));
 
 struct dns_question {
        uint16_t type;
        uint16_t class;
-} __attribute__((packed, aligned(2)));
+} __attribute__((packed));
 
 struct interface;
 extern int cfg_proto;