diff options
Diffstat (limited to 'sys/netipx/spx_usrreq.c')
-rw-r--r-- | sys/netipx/spx_usrreq.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c index 92769ba..409bf46 100644 --- a/sys/netipx/spx_usrreq.c +++ b/sys/netipx/spx_usrreq.c @@ -695,56 +695,6 @@ spx_ctlinput(cmd, arg_as_sa, dummy) } } -#ifdef notdef -int -spx_fixmtu(ipxp) -register struct ipxpcb *ipxp; -{ - register struct spxpcb *cb = (struct spxpcb *)(ipxp->ipxp_pcb); - register struct mbuf *m; - register struct spx *si; - struct ipx_errp *ep; - struct sockbuf *sb; - int badseq, len; - struct mbuf *firstbad, *m0; - - if (cb != NULL) { - /* - * The notification that we have sent - * too much is bad news -- we will - * have to go through queued up so far - * splitting ones which are too big and - * reassigning sequence numbers and checksums. - * we should then retransmit all packets from - * one above the offending packet to the last one - * we had sent (or our allocation) - * then the offending one so that the any queued - * data at our destination will be discarded. - */ - ep = (struct ipx_errp *)ipxp->ipxp_notify_param; - sb = &ipxp->ipxp_socket->so_snd; - cb->s_mtu = ep->ipx_err_param; - badseq = SI(&ep->ipx_err_ipx)->si_seq; - for (m = sb->sb_mb; m != NULL; m = m->m_act) { - si = mtod(m, struct spx *); - if (si->si_seq == badseq) - break; - } - if (m == NULL) - return; - firstbad = m; - /*for (;;) {*/ - /* calculate length */ - for (m0 = m, len = 0; m != NULL; m = m->m_next) - len += m->m_len; - if (len > cb->s_mtu) { - } - /* FINISH THIS - } */ - } -} -#endif - static int spx_output(cb, m0) register struct spxpcb *cb; |