From 1c35993915d8246cfd943d09ca99f118a5ff76df Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Tue, 1 Dec 2015 21:26:44 +0000 Subject: Kill redundant or unused arguments in rtredirect(). ok bluhm@ --- sys/netinet/ip_icmp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/netinet') diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index ec367837d64..32af2eec09d 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_icmp.c,v 1.146 2015/11/21 11:26:59 mpi Exp $ */ +/* $OpenBSD: ip_icmp.c,v 1.147 2015/12/01 21:26:43 mpi Exp $ */ /* $NetBSD: ip_icmp.c,v 1.19 1996/02/13 23:42:22 christos Exp $ */ /* @@ -652,9 +652,8 @@ reflect: &ip->ip_dst.s_addr)) goto freeit; #endif - rtredirect(sintosa(&sdst), sintosa(&sgw), NULL, - RTF_GATEWAY | RTF_HOST, sintosa(&ssrc), - &newrt, m->m_pkthdr.ph_rtableid); + rtredirect(sintosa(&sdst), sintosa(&sgw), + sintosa(&ssrc), &newrt, m->m_pkthdr.ph_rtableid); if (newrt != NULL && icmp_redirtimeout != 0) { (void)rt_timer_add(newrt, icmp_redirect_timeout, icmp_redirect_timeout_q, m->m_pkthdr.ph_rtableid); -- cgit v1.2.3