diff options
author | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | 2019-08-01 19:10:55 +0900 |
---|---|---|
committer | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | 2019-08-01 19:13:39 +0900 |
commit | 5367fa1524065edc05b0d1f80fca1d547024b98a (patch) | |
tree | b94b72645aae389307c0dc44b43acd1b0c74c29a | |
parent | ea91ceef76e00c14571d048bf690fa4eb25afc43 (diff) | |
download | slirp-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>
-rw-r--r-- | src/tcp_subr.c | 13 |
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; } |