summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_icmp.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-05-07 13:33:18 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-05-07 13:33:18 +0000
commit043b0fc8cb63b379ff2757ab2d64bf2b4c8c2cb7 (patch)
tree18ea5d2f321a9a8ea43ecdd326acada9de6ae943 /sys/netinet/ip_icmp.c
parent6bcd6fa8c9cab428fd9f7d850e1771ff3f94d451 (diff)
Start cleaning up the mess called rtalloc*. Kill rtalloc2, make rtalloc1
accept flags for report and nocloning. Move the rtableid into struct route (with a minor twist for now) and make a few more codepathes rdomain aware. Appart from the pf.c and route.c bits the diff is mostly mechanical. More to come... OK michele, henning
Diffstat (limited to 'sys/netinet/ip_icmp.c')
-rw-r--r--sys/netinet/ip_icmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
index 4c5a65c72d8..f22005e5fc6 100644
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_icmp.c,v 1.88 2010/04/20 22:05:43 tedu Exp $ */
+/* $OpenBSD: ip_icmp.c,v 1.89 2010/05/07 13:33:16 claudio Exp $ */
/* $NetBSD: ip_icmp.c,v 1.19 1996/02/13 23:42:22 christos Exp $ */
/*
@@ -688,7 +688,7 @@ icmp_reflect(struct mbuf *m)
dst->sin_addr = ip->ip_src;
/* keep packet in the original virtual instance */
- ro.ro_rt = rtalloc1(&ro.ro_dst, 1,
+ ro.ro_rt = rtalloc1(&ro.ro_dst, RT_REPORT,
m->m_pkthdr.rdomain);
if (ro.ro_rt == 0) {
ipstat.ips_noroute++;
@@ -878,7 +878,7 @@ icmp_mtudisc_clone(struct sockaddr *dst, u_int rtableid)
struct rtentry *rt;
int error;
- rt = rtalloc1(dst, 1, rtableid);
+ rt = rtalloc1(dst, RT_REPORT, rtableid);
if (rt == 0)
return (NULL);