summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <marin.ramesa@gmail.com>2013-06-29 20:39:39 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-06-29 20:39:39 +0200
commit33e22a2836117f1a1098b821875b35c004a717bf (patch)
treedc3c88304f80f47559f1ab97a565a9a1825556fb
parent1dc6074b62f8141e9848bbaee7275e5752507e8f (diff)
Add [nh]to[hn][ls] prototypes
* device/net_io.h (ntohl, htonl, ntohs, htons): Add prototypes.
-rw-r--r--device/net_io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/device/net_io.h b/device/net_io.h
index 073bdca..5b3a55c 100644
--- a/device/net_io.h
+++ b/device/net_io.h
@@ -83,4 +83,9 @@ extern void net_kmsg_collect (void);
#define net_kmsg_alloc() ((ipc_kmsg_t) kalloc(net_kmsg_size))
#define net_kmsg_free(kmsg) kfree((vm_offset_t) (kmsg), net_kmsg_size)
+extern unsigned int ntohl(unsigned int);
+extern unsigned short int ntohs(unsigned short int);
+extern unsigned int htonl(unsigned int);
+extern unsigned short int htons(unsigned short int);
+
#endif /* _DEVICE_NET_IO_H_ */