mirror of https://gitlab.com/qemu-project/qemu
slirp: Mark sockets of incoming TCP connections
Required for pretty-printing. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
9c12a6f24d
commit
4a82347a47
|
@ -73,6 +73,7 @@ struct socket {
|
||||||
|
|
||||||
#define SS_PERSISTENT_MASK 0xf000 /* Unremovable state bits */
|
#define SS_PERSISTENT_MASK 0xf000 /* Unremovable state bits */
|
||||||
#define SS_HOSTFWD 0x1000 /* Socket describes host->guest forwarding */
|
#define SS_HOSTFWD 0x1000 /* Socket describes host->guest forwarding */
|
||||||
|
#define SS_INCOMING 0x2000 /* Connection was initiated by a host on the internet */
|
||||||
|
|
||||||
extern struct socket tcb;
|
extern struct socket tcb;
|
||||||
|
|
||||||
|
|
|
@ -483,6 +483,7 @@ tcp_connect(struct socket *inso)
|
||||||
/* if it's not FACCEPTONCE, it's already NOFDREF */
|
/* if it's not FACCEPTONCE, it's already NOFDREF */
|
||||||
}
|
}
|
||||||
so->s = s;
|
so->s = s;
|
||||||
|
so->so_state |= SS_INCOMING;
|
||||||
|
|
||||||
so->so_iptos = tcp_tos(so);
|
so->so_iptos = tcp_tos(so);
|
||||||
tp = sototcpcb(so);
|
tp = sototcpcb(so);
|
||||||
|
|
Loading…
Reference in New Issue