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:
parent
e668dc5336
commit
b104688cbb
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue