diff options
author | Max Laier <mlaier@FreeBSD.org> | 2007-07-03 12:46:08 +0000 |
---|---|---|
committer | Max Laier <mlaier@FreeBSD.org> | 2007-07-03 12:46:08 +0000 |
commit | 60ee384760646565a24320d92c5219bc052ce947 (patch) | |
tree | d26897c8727f97369ee43f6b4684d5cfc7558dce /sys/netinet/ip_fw2.c | |
parent | 5ee7cd2107c8ffd1fe70115deabd6599dffb313b (diff) | |
download | src-60ee384760646565a24320d92c5219bc052ce947.tar.gz src-60ee384760646565a24320d92c5219bc052ce947.zip |
Link pf 4.1 to the build:
- move ftp-proxy from libexec to usr.sbin
- add tftp-proxy
- new altq mtag link
Approved by: re (kensmith)
Notes
Notes:
svn path=/head/; revision=171173
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r-- | sys/netinet/ip_fw2.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c index 72c11aca5f1f..e53e2e880f57 100644 --- a/sys/netinet/ip_fw2.c +++ b/sys/netinet/ip_fw2.c @@ -66,6 +66,7 @@ #include <net/if.h> #include <net/radix.h> #include <net/route.h> +#include <net/pf_mtag.h> #include <netinet/in.h> #include <netinet/in_systm.h> #include <netinet/in_var.h> @@ -3058,24 +3059,21 @@ check_body: break; case O_ALTQ: { - struct altq_tag *at; + struct pf_mtag *at; ipfw_insn_altq *altq = (ipfw_insn_altq *)cmd; match = 1; - mtag = m_tag_find(m, PACKET_TAG_PF_QID, NULL); - if (mtag != NULL) + at = pf_find_mtag(m); + if (at != NULL && at->qid != 0) break; - mtag = m_tag_get(PACKET_TAG_PF_QID, - sizeof(struct altq_tag), - M_NOWAIT); - if (mtag == NULL) { + at = pf_get_mtag(m); + if (at == NULL) { /* * Let the packet fall back to the * default ALTQ. */ break; } - at = (struct altq_tag *)(mtag+1); at->qid = altq->qid; if (is_ipv4) at->af = AF_INET; |