summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-12-01 21:26:44 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-12-01 21:26:44 +0000
commit1c35993915d8246cfd943d09ca99f118a5ff76df (patch)
tree4852d98543e95719dc3eeab973f830f5de6518d5 /sys/netinet
parent3b6c579ae94b204ce00ec5d2dd804bd05f927701 (diff)
Kill redundant or unused arguments in rtredirect().
ok bluhm@
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_icmp.c7
1 files changed, 3 insertions, 4 deletions
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);