Module Name:    src
Committed By:   maxv
Date:           Fri Mar 30 08:57:32 UTC 2018

Modified Files:
        src/sys/netinet: tcp_output.c

Log Message:
Remove dead code. It was introduced in rev1 (25 years ago), and is
irrelevant today.


To generate a diff of this commit:
cvs rdiff -u -r1.201 -r1.202 src/sys/netinet/tcp_output.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/tcp_output.c
diff -u src/sys/netinet/tcp_output.c:1.201 src/sys/netinet/tcp_output.c:1.202
--- src/sys/netinet/tcp_output.c:1.201	Fri Mar 30 08:53:51 2018
+++ src/sys/netinet/tcp_output.c	Fri Mar 30 08:57:32 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: tcp_output.c,v 1.201 2018/03/30 08:53:51 maxv Exp $	*/
+/*	$NetBSD: tcp_output.c,v 1.202 2018/03/30 08:57:32 maxv Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -135,7 +135,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.201 2018/03/30 08:53:51 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.202 2018/03/30 08:57:32 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -194,10 +194,6 @@ __KERNEL_RCSID(0, "$NetBSD: tcp_output.c
 #include <netinet/in_offload.h>
 #include <netinet6/in6_offload.h>
 
-#ifdef notyet
-extern struct mbuf *m_copypack();
-#endif
-
 /*
  * Knob to enable Congestion Window Monitoring, and control
  * the burst size it allows.  Default burst is 4 packets, per
@@ -428,16 +424,7 @@ tcp_build_datapkt(struct tcpcb *tp, stru
 		tcps[TCP_STAT_SNDBYTE] += len;
 	}
 	TCP_STAT_PUTREF();
-#ifdef notyet
-	if ((m = m_copypack(so->so_snd.sb_mb, off,
-	    (int)len, max_linkhdr + hdrlen)) == 0)
-		return ENOBUFS;
-	/*
-	 * m_copypack left space for our hdr; use it.
-	 */
-	m->m_len += hdrlen;
-	m->m_data -= hdrlen;
-#else
+
 	MGETHDR(m, M_DONTWAIT, MT_HEADER);
 	if (__predict_false(m == NULL))
 		return ENOBUFS;
@@ -514,7 +501,6 @@ tcp_build_datapkt(struct tcpcb *tp, stru
 			TCP_OUTPUT_COUNTER_INCR(&tcp_output_copybig);
 #endif
 	}
-#endif
 
 	*mp = m;
 	return 0;

Reply via email to