From ae23407fab6f7491b89a695117eb8252f71ae3a7 Mon Sep 17 00:00:00 2001 From: brooks Date: Wed, 6 Apr 2005 00:26:08 +0000 Subject: [PATCH] Use ACTION_PTR(r) instead of (r->cmd + r->act_ofs). Reviewed by: md5 --- sys/netinet/ip_dummynet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c index 596aca8c5892..0a93a2f0c9f1 100644 --- a/sys/netinet/ip_dummynet.c +++ b/sys/netinet/ip_dummynet.c @@ -1065,7 +1065,7 @@ locate_flowset(int pipe_nr, struct ip_fw *rule) { #if IPFW2 struct dn_flow_set *fs; - ipfw_insn *cmd = rule->cmd + rule->act_ofs; + ipfw_insn *cmd = ACTION_PTR(rule); if (cmd->opcode == O_LOG) cmd += F_LEN(cmd); @@ -1132,7 +1132,7 @@ dummynet_io(struct mbuf *m, int dir, struct ip_fw_args *fwa) struct dn_flow_queue *q = NULL ; int is_pipe; #if IPFW2 - ipfw_insn *cmd = fwa->rule->cmd + fwa->rule->act_ofs; + ipfw_insn *cmd = ACTION_PTR(fwa->rule); #endif KASSERT(m->m_nextpkt == NULL,