search for: 2e1487d2

Displaying 1 result from an estimated 1 matches for "2e1487d2".

Did you mean: 2148792
2020 Mar 28
0
[klibc:master] ipconfig: Fix alignment of packet structure
...gned(4)" so that it is definitely exactly 4-byte aligned. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/kinit/ipconfig/packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/kinit/ipconfig/packet.c b/usr/kinit/ipconfig/packet.c index 20018010..2e1487d2 100644 --- a/usr/kinit/ipconfig/packet.c +++ b/usr/kinit/ipconfig/packet.c @@ -86,7 +86,7 @@ static unsigned int ip_checksum(uint16_t *hdr, int len) struct header { struct iphdr ip; struct udphdr udp; -} __attribute__ ((packed)); +} __attribute__ ((packed, aligned(4))); static struct header...