diff options
| author | Andre Oppermann <andre@FreeBSD.org> | 2005-05-04 13:09:19 +0000 |
|---|---|---|
| committer | Andre Oppermann <andre@FreeBSD.org> | 2005-05-04 13:09:19 +0000 |
| commit | c773494edd9d7aea4c5e7246345c570ded196c5c (patch) | |
| tree | df78b85af4d568fda8517c5409445b468d558251 /sys/contrib | |
| parent | e0408a6edcd8cd5e420640a21efb83715c7c3024 (diff) | |
Notes
Diffstat (limited to 'sys/contrib')
| -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 a2794edac7ecd..c534ae9a503eb 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; |
