diff options
Diffstat (limited to 'gdhcp/common.h')
-rw-r--r-- | gdhcp/common.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gdhcp/common.h b/gdhcp/common.h index 13f49d8e..e2bfc6c8 100644 --- a/gdhcp/common.h +++ b/gdhcp/common.h @@ -24,24 +24,9 @@ #include <glib.h> +#include "unaligned.h" #include "gdhcp.h" -#define dhcp_get_unaligned(ptr) \ -({ \ - struct __attribute__((packed)) { \ - typeof(*(ptr)) __v; \ - } *__p = (void *) (ptr); \ - __p->__v; \ -}) - -#define dhcp_put_unaligned(val, ptr) \ -do { \ - struct __attribute__((packed)) { \ - typeof(*(ptr)) __v; \ - } *__p = (void *) (ptr); \ - __p->__v = (val); \ -} while (0) - #define CLIENT_PORT 68 #define SERVER_PORT 67 |