X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_socket.h;h=1e1d5f32ed49a3e93e0dbf5dc9fadfbc38580e26;hp=deeb1a45f779c5ac24e0a1082020e764ec987f8b;hb=9e5466cf32b157becd1f7d429bf687a1a14d544a;hpb=ec5d14e0646389db39ffc9244bf8204629b74a8e diff --git a/palacios/include/palacios/vmm_socket.h b/palacios/include/palacios/vmm_socket.h index deeb1a4..1e1d5f3 100644 --- a/palacios/include/palacios/vmm_socket.h +++ b/palacios/include/palacios/vmm_socket.h @@ -41,7 +41,7 @@ extern struct v3_socket_hooks * sock_hooks; \ int sock = 0; \ if ((sock_hooks) && (sock_hooks)->tcp_socket) { \ - sock = (sock_hooks)->tcp_socket(0,0,0); \ + sock = (sock_hooks)->tcp_socket(0,1,0); \ } \ sock; \ }) @@ -183,6 +183,15 @@ #define V3_SOCK_ZERO(p) memset((void*)(p), 0, sizeof(*(p))) +uint32_t v3_inet_addr(const char * ip_str); +char * v3_inet_ntoa(uint32_t addr); +uint16_t v3_htons(uint16_t s); +uint16_t v3_ntohs(uint16_t s); +uint32_t v3_htonl(uint32_t s); +uint32_t v3_ntohl(uint32_t s); + + + #endif