Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/pf/pf.c
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
#include <netinet/tcp.h> | #include <netinet/tcp.h> | ||||
#include <netinet/tcp_fsm.h> | #include <netinet/tcp_fsm.h> | ||||
#include <netinet/tcp_seq.h> | #include <netinet/tcp_seq.h> | ||||
#include <netinet/tcp_timer.h> | #include <netinet/tcp_timer.h> | ||||
#include <netinet/tcp_var.h> | #include <netinet/tcp_var.h> | ||||
#include <netinet/udp.h> | #include <netinet/udp.h> | ||||
#include <netinet/udp_var.h> | #include <netinet/udp_var.h> | ||||
#include <netpfil/ipfw/ip_fw_private.h> /* XXX: only for DIR_IN/DIR_OUT */ | |||||
#ifdef INET6 | #ifdef INET6 | ||||
#include <netinet/ip6.h> | #include <netinet/ip6.h> | ||||
#include <netinet/icmp6.h> | #include <netinet/icmp6.h> | ||||
#include <netinet6/nd6.h> | #include <netinet6/nd6.h> | ||||
#include <netinet6/ip6_var.h> | #include <netinet6/ip6_var.h> | ||||
#include <netinet6/in6_pcb.h> | #include <netinet6/in6_pcb.h> | ||||
#include <netinet6/in6_fib.h> | #include <netinet6/in6_fib.h> | ||||
#include <netinet6/scope6_var.h> | #include <netinet6/scope6_var.h> | ||||
▲ Show 20 Lines • Show All 6,075 Lines • ▼ Show 20 Lines | if (ipfwtag != NULL) { | ||||
DPFPRINTF(PF_DEBUG_MISC, | DPFPRINTF(PF_DEBUG_MISC, | ||||
("pf: failed to allocate tag\n")); | ("pf: failed to allocate tag\n")); | ||||
} else { | } else { | ||||
pd.pf_mtag->flags |= | pd.pf_mtag->flags |= | ||||
PF_FASTFWD_OURS_PRESENT; | PF_FASTFWD_OURS_PRESENT; | ||||
m->m_flags &= ~M_FASTFWD_OURS; | m->m_flags &= ~M_FASTFWD_OURS; | ||||
} | } | ||||
} | } | ||||
ip_divert_ptr(*m0, dir == PF_IN ? DIR_IN : DIR_OUT); | ip_divert_ptr(*m0, dir == PF_IN); | ||||
*m0 = NULL; | *m0 = NULL; | ||||
return (action); | return (action); | ||||
} else { | } else { | ||||
/* XXX: ipfw has the same behaviour! */ | /* XXX: ipfw has the same behaviour! */ | ||||
action = PF_DROP; | action = PF_DROP; | ||||
REASON_SET(&reason, PFRES_MEMORY); | REASON_SET(&reason, PFRES_MEMORY); | ||||
log = 1; | log = 1; | ||||
▲ Show 20 Lines • Show All 493 Lines • Show Last 20 Lines |