HomeFreeBSD

Fix epoch-related panic in ipdivert, ensuring in_broadcast() is called

Description

Fix epoch-related panic in ipdivert, ensuring in_broadcast() is called
within epoch.

Simplify gigantic div_output() by splitting it into 3 functions,
handling preliminary setup, remote "ip[6]_output" case and
local "netisr" case. Leave original indenting in most parts to ease
diff comparison. Indentation will be fixed by a followup commit.

Reported by: Nick Hibma <nick at van-laarhoven.org>
Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D23317

Details

Provenance
melifaroAuthored on
Reviewer
glebius
Differential Revision
D23317: Fix epoch-related panic in ipdivert & refactor div_output.
Parents
rS357037: Enable commit access for James Clarke (jrtc27).
Branches
Unknown
Tags
Unknown