X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_socket.h;h=1e1d5f32ed49a3e93e0dbf5dc9fadfbc38580e26;hb=8297338f93cf45f648281a9d01161eb9115f9dd1;hp=deeb1a45f779c5ac24e0a1082020e764ec987f8b;hpb=9b4bfeefac09294a6f0ae12dbadf102eb547f5ec;p=palacios.git 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