[En-Nut-Discussion] DHCP option one byte offset (Big Endian)?
Tyou
tyou at i-da.co.jp
Tue Jul 29 10:37:18 CEST 2003
Hi, Harald,
oOPs,,,,, only the second one does not work well on H8. ^_^
eg.. cp = 0x2201, when execute ip = *((u_long *)cp),
H8 just read out the long word at 0x2200, the address
LSB bit0 is ignored. So that's why I got the wrong MASK
and GATE in the former mail.[ 4.255.255.255. the first 255
is located at odd address..]
I think using "memcpy(&ip, cp, 4);" is better , it is more fast.
Regards
Tyou
More information about the En-Nut-Discussion
mailing list