svn commit: r247959 - stable/8/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Thu Mar 7 22:05:28 UTC 2013


Author: tuexen
Date: Thu Mar  7 22:05:27 2013
New Revision: 247959
URL: http://svnweb.freebsd.org/changeset/base/247959

Log:
  MFC r238002:
  
  Remove dead code (on FreeBSD) as suggested by glebius at .

Modified:
  stable/8/sys/netinet/sctp_output.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/netinet/   (props changed)

Modified: stable/8/sys/netinet/sctp_output.c
==============================================================================
--- stable/8/sys/netinet/sctp_output.c	Thu Mar  7 21:48:05 2013	(r247958)
+++ stable/8/sys/netinet/sctp_output.c	Thu Mar  7 22:05:27 2013	(r247959)
@@ -10893,7 +10893,6 @@ sctp_send_resp_msg(struct mbuf *m, struc
 	int len, cause_len, padding_len, ret;
 
 #ifdef INET
-	sctp_route_t ro;
 	struct ip *iph_out;
 
 #endif
@@ -11057,8 +11056,6 @@ sctp_send_resp_msg(struct mbuf *m, struc
 	SCTP_ATTACH_CHAIN(o_pak, mout, len);
 #ifdef INET
 	if (iph_out != NULL) {
-		/* zap the stack pointer to the route */
-		bzero(&ro, sizeof(sctp_route_t));
 		if (port) {
 			if (V_udp_cksum) {
 				udp->uh_sum = in_pseudo(iph_out->ip_src.s_addr, iph_out->ip_dst.s_addr, udp->uh_ulen + htons(IPPROTO_UDP));
@@ -11091,11 +11088,7 @@ sctp_send_resp_msg(struct mbuf *m, struc
 			sctp_packet_log(o_pak);
 		}
 #endif
-		SCTP_IP_OUTPUT(ret, o_pak, &ro, NULL, vrf_id);
-		/* Free the route if we got one back */
-		if (ro.ro_rt) {
-			RTFREE(ro.ro_rt);
-		}
+		SCTP_IP_OUTPUT(ret, o_pak, NULL, NULL, vrf_id);
 	}
 #endif
 #ifdef INET6


More information about the svn-src-stable-8 mailing list