aboutsummaryrefslogtreecommitdiff
path: root/src/tcp_subr.c
diff options
context:
space:
mode:
authorAkihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>2019-08-01 19:10:55 +0900
committerAkihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>2019-08-01 19:13:39 +0900
commit5367fa1524065edc05b0d1f80fca1d547024b98a (patch)
treeb94b72645aae389307c0dc44b43acd1b0c74c29a /src/tcp_subr.c
parentea91ceef76e00c14571d048bf690fa4eb25afc43 (diff)
downloadslirp-5367fa1524065edc05b0d1f80fca1d547024b98a.zip
slirp-5367fa1524065edc05b0d1f80fca1d547024b98a.tar.gz
slirp-5367fa1524065edc05b0d1f80fca1d547024b98a.tar.bz2
emu: remove dead code
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Diffstat (limited to 'src/tcp_subr.c')
-rw-r--r--src/tcp_subr.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/tcp_subr.c b/src/tcp_subr.c
index 60cc0a1..1f6ef1a 100644
--- a/src/tcp_subr.c
+++ b/src/tcp_subr.c
@@ -556,15 +556,12 @@ static const struct tos_t tcptos[] = {
{ 0, 0, 0, 0 }
};
-static struct emu_t *tcpemu = NULL;
-
/*
* Return TOS according to the above table
*/
uint8_t tcp_tos(struct socket *so)
{
int i = 0;
- struct emu_t *emup;
while (tcptos[i].tos) {
if ((tcptos[i].fport && (ntohs(so->so_fport) == tcptos[i].fport)) ||
@@ -574,16 +571,6 @@ uint8_t tcp_tos(struct socket *so)
}
i++;
}
-
- /* Nope, lets see if there's a user-added one */
- for (emup = tcpemu; emup; emup = emup->next) {
- if ((emup->fport && (ntohs(so->so_fport) == emup->fport)) ||
- (emup->lport && (ntohs(so->so_lport) == emup->lport))) {
- so->so_emu = emup->emu;
- return emup->tos;
- }
- }
-
return 0;
}