Let me know whether this patch fixes all your problems.
It fixes my busybox / dnsd related problems. I didn't really expect it
to solve _all_ my problems ;-)
Am 20.04.2010 22:25, schrieb Denys Vlasenko:
On Sat, Apr 17, 2010 at 7:46 AM, Lars Reemts l...@reemts.de wrote:
Does it work
Sorry, my mistake.
Denys Vlasenko schrieb:
On Thu, Apr 15, 2010 at 12:40 AM, Lars Reemts l...@reemts.de wrote:
So I went with slapping ALIGN4 on the byte array instead.
The ALIGN4 doesn't compile for me. gcc complains not to know the ALIGN4
macro. Had to change it to:
uint8_t buf
to memcpy with a length of 2.
Denys Vlasenko schrieb:
On Wed, Apr 14, 2010 at 6:02 AM, Lars Reemts l...@reemts.de wrote:
Hello,
I'm using busybox on a AT91SAM9261 (arm920t) processor with gcc 4.3.4.
Yesterday I ran into some problems using dnsd. DNS queries from a
windows host were
) {void*
src=(void*)(u16p);memcpy((v), src, 2);}
will do the trick. I will try it tomorrow.
Denys Vlasenko schrieb:
On Wed, Apr 14, 2010 at 6:02 AM, Lars Reemts l...@reemts.de wrote:
Hello,
I'm using busybox on a AT91SAM9261 (arm920t) processor with gcc 4.3.4.
Yesterday I ran into some
); \
*(((uint8_t*)v)+1) = *(((uint8_t*)u16p)+1); \
} while (0)
Lars Reemts schrieb:
Are you saying that here:
# define move_from_unaligned16(v, u16p) (memcpy((v), (u16p), 2))
memcpy may be opportunistic and if u16p has type uin16_t,
memcpy will be optimized to assignment
So I went with slapping ALIGN4 on the byte array instead.
The ALIGN4 doesn't compile for me. gcc complains not to know the ALIGN4
macro. Had to change it to:
uint8_t buf[MAX_PACK_LEN + 1] __attribute__ ((aligned (4)));
Denys Vlasenko schrieb:
On Wed, Apr 14, 2010 at 6:02 AM, Lars Reemts l