aboutsummaryrefslogtreecommitdiff
path: root/src/slirp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/slirp.h')
-rw-r--r--src/slirp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slirp.h b/src/slirp.h
index e413867..1fe7293 100644
--- a/src/slirp.h
+++ b/src/slirp.h
@@ -67,6 +67,7 @@ struct ethhdr {
unsigned short h_proto; /* packet type ID field */
};
+SLIRP_PACKED_BEGIN
struct slirp_arphdr {
unsigned short ar_hrd; /* format of hardware address */
unsigned short ar_pro; /* format of protocol address */
@@ -81,7 +82,7 @@ struct slirp_arphdr {
uint32_t ar_sip; /* sender IP address */
uint8_t ar_tha[ETH_ALEN]; /* target hardware address */
uint32_t ar_tip; /* target IP address */
-} SLIRP_PACKED;
+} SLIRP_PACKED_END;
#define ARP_TABLE_SIZE 16