1 | /* $Id: pxtcp.h 76576 2019-01-01 06:05:25Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * NAT Network - TCP proxy, internal interface declarations.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2013-2019 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef VBOX_INCLUDED_SRC_NAT_pxtcp_h
|
---|
19 | #define VBOX_INCLUDED_SRC_NAT_pxtcp_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | #include "lwip/err.h"
|
---|
25 | #include "lwip/ip_addr.h"
|
---|
26 |
|
---|
27 | struct pbuf;
|
---|
28 | struct tcp_pcb;
|
---|
29 | struct pxtcp;
|
---|
30 | struct fwspec;
|
---|
31 |
|
---|
32 | err_t pxtcp_pcb_accept_outbound(struct tcp_pcb *, struct pbuf *, int, ipX_addr_t *, u16_t);
|
---|
33 |
|
---|
34 | struct pxtcp *pxtcp_create_forwarded(SOCKET);
|
---|
35 | void pxtcp_cancel_forwarded(struct pxtcp *);
|
---|
36 |
|
---|
37 | void pxtcp_pcb_connect(struct pxtcp *, const struct fwspec *);
|
---|
38 |
|
---|
39 | int pxtcp_pmgr_add(struct pxtcp *);
|
---|
40 | void pxtcp_pmgr_del(struct pxtcp *);
|
---|
41 |
|
---|
42 | #endif /* !VBOX_INCLUDED_SRC_NAT_pxtcp_h */
|
---|