/* * VMware vSockets Driver * * Copyright (C) 2007-2013 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation version 2 and no later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. */#ifndef _VSOCK_ADDR_H_#define _VSOCK_ADDR_H_#include <linux/vm_sockets.h>voidvsock_addr_init(structsockaddr_vm*addr,u32cid,u32port);intvsock_addr_validate(conststructsockaddr_vm*addr);boolvsock_addr_bound(conststructsockaddr_vm*addr);voidvsock_addr_unbind(structsockaddr_vm*addr);boolvsock_addr_equals_addr(conststructsockaddr_vm*addr,conststructsockaddr_vm*other);intvsock_addr_cast(conststructsockaddr*addr,size_tlen,structsockaddr_vm**out_addr);#endif