summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2015-12-02 13:29:27 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2015-12-02 13:29:27 +0000
commit829c3f1d9e6988fa2c4497774dcb2330bc439d45 (patch)
tree979514c43c1b84f23454d53733e3462eed85e9eb /sys/net/pf.c
parent62e621509c602e1241ab5aa91d796d395e2527d7 (diff)
Kill the RT_REPORT flag to rtalloc() and stop sending RTM_MISS messages
for failed route lookups. This is something that was maybe useful in the 90is but in this modern times it is just annoying and nothing expect it anyway. OK mpi@, sthen@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 6f4859cd716..c3d978ff259 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.952 2015/11/21 11:29:40 mpi Exp $ */
+/* $OpenBSD: pf.c,v 1.953 2015/12/02 13:29:25 claudio Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -2934,7 +2934,7 @@ pf_calc_mss(struct pf_addr *addr, sa_family_t af, int rtableid, u_int16_t offer)
dst->sin_family = AF_INET;
dst->sin_len = sizeof(*dst);
dst->sin_addr = addr->v4;
- rt = rtalloc(sintosa(dst), RT_REPORT, rtableid);
+ rt = rtalloc(sintosa(dst), 0, rtableid);
break;
#ifdef INET6
case AF_INET6:
@@ -2943,7 +2943,7 @@ pf_calc_mss(struct pf_addr *addr, sa_family_t af, int rtableid, u_int16_t offer)
dst6->sin6_family = AF_INET6;
dst6->sin6_len = sizeof(*dst6);
dst6->sin6_addr = addr->v6;
- rt = rtalloc(sin6tosa(dst6), RT_REPORT, rtableid);
+ rt = rtalloc(sin6tosa(dst6), 0, rtableid);
break;
#endif /* INET6 */
}
@@ -5384,7 +5384,7 @@ pf_routable(struct pf_addr *addr, sa_family_t af, struct pfi_kif *kif,
if (kif != NULL && kif->pfik_ifp->if_type == IFT_ENC)
goto out;
- rt0 = rtalloc((struct sockaddr *)&ss, RT_REPORT, rtableid);
+ rt0 = rtalloc((struct sockaddr *)&ss, 0, rtableid);
if (rt0 != NULL) {
/* No interface given, this is a no-route check */
if (kif == NULL)
@@ -5456,7 +5456,7 @@ pf_rtlabel_match(struct pf_addr *addr, sa_family_t af, struct pf_addr_wrap *aw,
#endif /* INET6 */
}
- rt = rtalloc((struct sockaddr *)&ss, RT_REPORT|RT_RESOLVE, rtableid);
+ rt = rtalloc((struct sockaddr *)&ss, RT_RESOLVE, rtableid);
if (rt != NULL) {
if (rt->rt_labelid == aw->v.rtlabel)
ret = 1;
@@ -5515,7 +5515,7 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
rtableid = m0->m_pkthdr.ph_rtableid;
if (!r->rt) {
- rt = rtalloc(sintosa(dst), RT_REPORT|RT_RESOLVE, rtableid);
+ rt = rtalloc(sintosa(dst), RT_RESOLVE, rtableid);
if (rt == NULL) {
ipstat.ips_noroute++;
goto bad;