summaryrefslogtreecommitdiffstats
path: root/sys/contrib/pf/net/if_pfsync.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2011-12-22 18:51:35 +0000
committerglebius <glebius@FreeBSD.org>2011-12-22 18:51:35 +0000
commita2fe6080f4e232c5d87b90d8acfdbaafed62724b (patch)
tree1d433936123b1c4ebf471be9b3e2d5f17cf93fed /sys/contrib/pf/net/if_pfsync.c
parent744cf7a5e4e956573d75319d383755b9bc56462b (diff)
downloadFreeBSD-src-a2fe6080f4e232c5d87b90d8acfdbaafed62724b.zip
FreeBSD-src-a2fe6080f4e232c5d87b90d8acfdbaafed62724b.tar.gz
We really mean MTU of the real interface here, not of our pseudo.
Diffstat (limited to 'sys/contrib/pf/net/if_pfsync.c')
-rw-r--r--sys/contrib/pf/net/if_pfsync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/pf/net/if_pfsync.c b/sys/contrib/pf/net/if_pfsync.c
index 32506ef..a384378 100644
--- a/sys/contrib/pf/net/if_pfsync.c
+++ b/sys/contrib/pf/net/if_pfsync.c
@@ -2655,7 +2655,7 @@ pfsync_request_update(u_int32_t creatorid, u_int64_t id)
nlen += sizeof(struct pfsync_subheader);
#ifdef __FreeBSD__
- if (sc->sc_len + nlen > sc->sc_ifp->if_mtu) {
+ if (sc->sc_len + nlen > sc->sc_sync_if->if_mtu) {
#else
if (sc->sc_len + nlen > sc->sc_if.if_mtu) {
#endif
OpenPOWER on IntegriCloud