proxyarp: Fix DHCP and ND message structures

These need to be marked packed to avoid issues with compilers
potentially adding padding between the fields (e.g., gcc on 64-bit
seemed to make struct icmpv6_ndmsg two octets too long which broke IPv6
address discovery).

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2014-11-26 01:05:24 +02:00 committed by Jouni Malinen
parent 3a7414b6a6
commit a7fb5ea463
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ struct bootp_pkt {
u8 serv_name[64];
u8 boot_file[128];
u8 exten[312];
};
} STRUCT_PACKED;
#define DHCPACK 5
static const u8 ic_bootp_cookie[] = { 99, 130, 83, 99 };

View file

@ -30,7 +30,7 @@ struct icmpv6_ndmsg {
u8 opt_type;
u8 len;
u8 opt_lladdr[0];
};
} STRUCT_PACKED;
#define ROUTER_ADVERTISEMENT 134
#define NEIGHBOR_SOLICITATION 135