From 5367fa1524065edc05b0d1f80fca1d547024b98a Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Thu, 1 Aug 2019 19:10:55 +0900 Subject: emu: remove dead code Signed-off-by: Akihiro Suda --- src/tcp_subr.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/tcp_subr.c') 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; } -- cgit v1.1