9
0
Fork 0

net: new function net_read_uint64

This is needed for nfs3 support as some types became bigger compared to
nfs2.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Uwe Kleine-König 2014-02-07 22:28:09 +01:00 committed by Sascha Hauer
parent e668dc5336
commit b104688cbb
1 changed files with 7 additions and 0 deletions

View File

@ -276,6 +276,13 @@ static inline uint32_t net_read_uint32(void *from)
return tmp;
}
static inline uint64_t net_read_uint64(void *from)
{
uint64_t tmp;
memcpy(&tmp, from, sizeof(tmp));
return tmp;
}
/* write IP *in network byteorder* */
static inline void net_write_ip(void *to, IPaddr_t ip)
{