Date: Mon, 2 Jul 2012 16:40:11 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r238002 - head/sys/netinet Message-ID: <201207021640.q62GeB49081946@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Mon Jul 2 16:40:11 2012 New Revision: 238002 URL: http://svn.freebsd.org/changeset/base/238002 Log: Remove dead code (on FreeBSD) as suggested by glebius@. MFC after: 3 days Modified: head/sys/netinet/sctp_output.c Modified: head/sys/netinet/sctp_output.c ============================================================================== --- head/sys/netinet/sctp_output.c Mon Jul 2 16:24:43 2012 (r238001) +++ head/sys/netinet/sctp_output.c Mon Jul 2 16:40:11 2012 (r238002) @@ -10811,7 +10811,6 @@ sctp_send_resp_msg(struct sockaddr *src, int len, cause_len, padding_len, ret; #ifdef INET - sctp_route_t ro; struct sockaddr_in *src_sin, *dst_sin; struct ip *ip; @@ -10979,8 +10978,6 @@ sctp_send_resp_msg(struct sockaddr *src, SCTP_ATTACH_CHAIN(o_pak, mout, len); #ifdef INET if (ip != 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(ip->ip_src.s_addr, ip->ip_dst.s_addr, udp->uh_ulen + htons(IPPROTO_UDP)); @@ -11013,11 +11010,7 @@ sctp_send_resp_msg(struct sockaddr *src, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207021640.q62GeB49081946>