[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Possible alignment bug in 1.4.0?
From: |
Krzysztof Wesołowski |
Subject: |
[lwip-users] Possible alignment bug in 1.4.0? |
Date: |
Mon, 5 Mar 2012 18:42:47 +0100 |
I have encountered some HardFaults in rcurrent 1.4.0 version, file
etharp.c code, line 416.
code (stripped from asserts):
static err_t
etharp_send_ip(struct netif *netif, struct pbuf *p, struct eth_addr
*src, struct eth_addr *dst)
{
struct eth_hdr *ethhdr = (struct eth_hdr *)p->payload;
ETHADDR32_COPY(ðhdr->dest, dst);
ETHADDR16_COPY(ðhdr->src, src);
ethhdr->type = PP_HTONS(ETHTYPE_IP);
return netif->linkoutput(netif, p);
}
Assumes that ðhdr->dest is 32bit aligned, which is true only for
ETH_PAD_SIZE==0.
Am I doing something wrong?
Regards,
Krzysztof Wesołowski,
- [lwip-users] Possible alignment bug in 1.4.0?,
Krzysztof Wesołowski <=