[Bug 202351] [ip6] [panic] Kernel panic in ip6_forward (different from 128247, 131038)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Sep 1 19:04:36 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202351

--- Comment #4 from commit-hook at freebsd.org ---
A commit references this bug:

Author: kp
Date: Tue Sep  1 19:04:05 UTC 2015
New revision: 287376
URL: https://svnweb.freebsd.org/changeset/base/287376

Log:
  pf: Fix misdetection of forwarding when net.link.bridge.pfil_bridge is set

  If net.link.bridge.pfil_bridge is set we can end up thinking we're forwarding
in
  pf_test6() because the rcvif and the ifp (output interface) are different.
  In that case we're bridging though, and the rcvif the the bridge member on
which
  the packet was received and ifp is the bridge itself.
  If we'd set dir to PF_FWD we'd end up calling ip6_forward() which is
incorrect.

  Instead check if the rcvif is a member of the ifp bridge. (In other words,
the
  if_bridge is the ifp's softc). If that's the case we're not forwarding but
  bridging.

  PR:    202351
  Reviewed by:    eri
  Differential Revision:    https://reviews.freebsd.org/D3534

Changes:
  head/sys/netpfil/pf/pf.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list