Delete #if 0 block containing remnants of pre-MTU discovery rmx_mtu

initialization.
This commit is contained in:
Garrett Wollman 1996-04-26 18:31:41 +00:00
parent 7c1c2d7ebd
commit 93902408b8

View File

@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: in_rmx.c,v 1.22 1995/12/19 20:46:13 wollman Exp $
* $Id: in_rmx.c,v 1.23 1996/01/23 05:15:30 fenner Exp $
*/
/*
@ -65,9 +65,6 @@
#include <netinet/tcp_seq.h>
#include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h>
#if 0
#include <netinet/tcpip.h>
#endif
extern int in_inithead __P((void **head, int off));
@ -110,22 +107,9 @@ in_addroute(void *v_arg, void *n_arg, struct radix_node_head *head,
if (!rt->rt_rmx.rmx_recvpipe && !(rt->rt_rmx.rmx_locks & RTV_RPIPE))
rt->rt_rmx.rmx_recvpipe = tcp_recvspace;
#if 0
/*
* Finally, set an MTU, again duplicating logic in TCP.
* The in_localaddr() business will go away when we have
* proper PMTU discovery.
*/
#endif
if (!rt->rt_rmx.rmx_mtu && !(rt->rt_rmx.rmx_locks & RTV_MTU)
&& rt->rt_ifp)
#if 0
rt->rt_rmx.rmx_mtu = (in_localaddr(sin->sin_addr)
? rt->rt_ifp->if_mtu
: tcp_mssdflt + sizeof(struct tcpiphdr));
#else
rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu;
#endif
ret = rn_addroute(v_arg, n_arg, head, treenodes);
if (ret == NULL && rt->rt_flags & RTF_HOST) {