summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2005-04-06 00:26:08 +0000
committerbrooks <brooks@FreeBSD.org>2005-04-06 00:26:08 +0000
commitae23407fab6f7491b89a695117eb8252f71ae3a7 (patch)
tree463d7c928ca7e86f8fa0c4e7d0e25de973fd7286 /sys
parentaf3715235301e0cb40d58bfa7c3f0a2fd6af57a8 (diff)
downloadFreeBSD-src-ae23407fab6f7491b89a695117eb8252f71ae3a7.zip
FreeBSD-src-ae23407fab6f7491b89a695117eb8252f71ae3a7.tar.gz
Use ACTION_PTR(r) instead of (r->cmd + r->act_ofs).
Reviewed by: md5
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_dummynet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c
index 596aca8..0a93a2f 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,
OpenPOWER on IntegriCloud