]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - net/dns.h
net: Use packed structures for networking
[karo-tx-uboot.git] / net / dns.h
index dbc3890df9d3651a18406d35a1cdb67b9f7b6f53..c55a5c1b04660ab4bf49a73d26a71f1005f2e2b3 100644 (file)
--- a/net/dns.h
+++ b/net/dns.h
@@ -29,8 +29,8 @@ struct header {
        uint16_t        nauth;          /* Authority PRs */
        uint16_t        nother;         /* Other PRs */
        unsigned char   data[1];        /* Data, variable length */
-};
+} __attribute__((packed));
 
-extern void DnsStart(void);            /* Begin DNS */
+void dns_start(void);          /* Begin DNS */
 
 #endif