Re: [systemd-devel] unaligned write in dhcp_identifier_set_iaid

2015-05-19 Thread Tom Gundersen
On Tue, Feb 24, 2015 at 7:22 PM, Michael Olbrich wrote: > there is an unaligned write in dhcp_identifier_set_iaid() and I'm not quite > sure what the correct fix is: > > int dhcp_identifier_set_iaid(int ifindex, uint8_t *mac, size_t mac_len, > uint32_t *_id) { > [...] > *_id = (id & 0xfff

[systemd-devel] unaligned write in dhcp_identifier_set_iaid

2015-02-24 Thread Michael Olbrich
Hi, there is an unaligned write in dhcp_identifier_set_iaid() and I'm not quite sure what the correct fix is: int dhcp_identifier_set_iaid(int ifindex, uint8_t *mac, size_t mac_len, uint32_t *_id) { [...] *_id = (id & 0x) ^ (id >> 32); [...] } And this is called with: r = dhcp_i