Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Mar 2017 20:23:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ipfw@FreeBSD.org
Subject:   [Bug 217262] ipfw lookup tables match on index instead of value
Message-ID:  <bug-217262-7515-JJLckELj3b@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217262-7515@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217262-7515@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217262

--- Comment #3 from commit-hook@freebsd.org ---
A commit references this bug:

Author: ae
Date: Fri Mar  3 20:22:42 UTC 2017
New revision: 314614
URL: https://svnweb.freebsd.org/changeset/base/314614

Log:
  Fix matching table entry value. Use real table value instead of its index
  in valuestate array.

  When opcode has size equal to ipfw_insn_u32, this means that it should
  additionally match value specified in d[0] with table entry value.
  ipfw_table_lookup() returns table value index, use TARG_VAL() macro to
  convert it to its value. The actual 32-bit value stored in the tag field
  of table_value structure, where all unspecified u32 values are kept.

  PR:           217262
  Reviewed by:  melifaro
  MFC after:    1 week
  Sponsored by: Yandex LLC

Changes:
  head/sys/netpfil/ipfw/ip_fw2.c

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217262-7515-JJLckELj3b>