From adaedb9299c77e18150b685a96d51b1ce67ec423 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 22 Apr 2013 14:08:33 +0200 Subject: Miscellaneous fixes in ethernet address handling Check the length of ethernet frames, and the fastd_eth_addr_t structure must be packed. --- src/packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/packet.h') diff --git a/src/packet.h b/src/packet.h index d547b0e..01f77fb 100644 --- a/src/packet.h +++ b/src/packet.h @@ -39,7 +39,7 @@ typedef enum fastd_packet_type { PACKET_DATA, } fastd_packet_type_t; -typedef struct __attribute__ ((__packed__)) fastd_packet { +typedef struct __attribute__((__packed__)) fastd_packet { uint8_t rsv1; uint16_t rsv2; uint8_t tlv_data[]; -- cgit v1.2.3