diff options
author | andre <andre@FreeBSD.org> | 2005-05-04 13:09:19 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2005-05-04 13:09:19 +0000 |
commit | e6d10efc2a28df376035767e5e60dc1a717178c1 (patch) | |
tree | df78b85af4d568fda8517c5409445b468d558251 /sys/contrib/pf | |
parent | c9c0d4d0d6f2957fc31eff768b148f2b7bd0055a (diff) | |
download | FreeBSD-src-e6d10efc2a28df376035767e5e60dc1a717178c1.zip FreeBSD-src-e6d10efc2a28df376035767e5e60dc1a717178c1.tar.gz |
Pass icmp_error() the MTU argument directly instead of
an interface pointer. This simplifies a couple of uses
and removes some XXX workarounds.
Diffstat (limited to 'sys/contrib/pf')
-rw-r--r-- | sys/contrib/pf/net/pf.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c index a2794ed..c534ae9 100644 --- a/sys/contrib/pf/net/pf.c +++ b/sys/contrib/pf/net/pf.c @@ -1798,9 +1798,7 @@ pf_send_icmp(struct mbuf *m, u_int8_t type, u_int8_t code, sa_family_t af, NTOHS(ip->ip_len); NTOHS(ip->ip_off); PF_UNLOCK(); -#endif - icmp_error(m0, type, code, 0, (void *)NULL); -#ifdef __FreeBSD__ + icmp_error(m0, type, code, 0, 0); PF_LOCK(); #endif break; @@ -5789,10 +5787,8 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp, NTOHS(ip->ip_len); NTOHS(ip->ip_off); PF_UNLOCK(); -#endif icmp_error(m0, ICMP_UNREACH, ICMP_UNREACH_NEEDFRAG, 0, - ifp); -#ifdef __FreeBSD__ + ifp->if_mtu); PF_LOCK(); #endif goto done; |