Page MenuHomeFreeBSD

net: don't panic on ifconfig pfsync0 mtu 9000
ClosedPublic

Authored by kp on Aug 7 2026, 2:54 PM.
Tags
None
Referenced Files
F170808579: D58701.id183675.diff
Sun, Sep 6, 6:41 PM
F170722388: D58701.id183619.diff
Sun, Sep 6, 5:33 AM
F170697513: D58701.id183619.diff
Sun, Sep 6, 2:10 AM
Unknown Object (File)
Sat, Sep 5, 1:04 PM
Unknown Object (File)
Sat, Sep 5, 9:59 AM
Unknown Object (File)
Fri, Sep 4, 3:28 AM
Unknown Object (File)
Thu, Sep 3, 7:33 AM
Unknown Object (File)
Wed, Sep 2, 10:01 PM

Details

Summary

pfsync interfaces do not have ifp->if_inet6 set, so when we update the
MTU for those interfaces we panicked.

Add an explicit check for this. This should be temporary, until pfsync
is no longer a struct ifnet (as we've already done for pflog).

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Aug 7 2026, 2:54 PM
glebius added inline comments.
sys/net/route.c
519–521

Let's mark it with IFT_PFSYNC so that won't be forgotten to be removed.

This revision is now accepted and ready to land.Aug 7 2026, 9:23 PM

Add IFT_PFSYNC comment.

This revision now requires review to proceed.Sat, Aug 8, 8:10 AM
This revision was not accepted when it landed; it landed in state Needs Review.Sat, Aug 8, 9:07 AM
This revision was automatically updated to reflect the committed changes.