mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
slirp: remove #if notdef dead code
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
This commit is contained in:
committed by
Samuel Thibault
parent
2addc8fb6d
commit
04c43b4458
@@ -1441,45 +1441,6 @@ tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt, struct tcpiphdr *ti)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Pull out of band byte out of a segment so
|
||||
* it doesn't appear in the user's data queue.
|
||||
* It is still reflected in the segment length for
|
||||
* sequencing purposes.
|
||||
*/
|
||||
|
||||
#ifdef notdef
|
||||
|
||||
void
|
||||
tcp_pulloutofband(so, ti, m)
|
||||
struct socket *so;
|
||||
struct tcpiphdr *ti;
|
||||
register struct mbuf *m;
|
||||
{
|
||||
int cnt = ti->ti_urp - 1;
|
||||
|
||||
while (cnt >= 0) {
|
||||
if (m->m_len > cnt) {
|
||||
char *cp = mtod(m, caddr_t) + cnt;
|
||||
struct tcpcb *tp = sototcpcb(so);
|
||||
|
||||
tp->t_iobc = *cp;
|
||||
tp->t_oobflags |= TCPOOB_HAVEDATA;
|
||||
memcpy(sp, cp+1, (unsigned)(m->m_len - cnt - 1));
|
||||
m->m_len--;
|
||||
return;
|
||||
}
|
||||
cnt -= m->m_len;
|
||||
m = m->m_next; /* XXX WRONG! Fix it! */
|
||||
if (m == 0)
|
||||
break;
|
||||
}
|
||||
panic("tcp_pulloutofband");
|
||||
}
|
||||
|
||||
#endif /* notdef */
|
||||
|
||||
/*
|
||||
* Collect new round-trip time estimate
|
||||
* and update averages and current timeout.
|
||||
|
||||
Reference in New Issue
Block a user