Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 2011 18:51:36 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228813 - head/sys/contrib/pf/net
Message-ID:  <201112221851.pBMIpaY5029485@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Thu Dec 22 18:51:35 2011
New Revision: 228813
URL: http://svn.freebsd.org/changeset/base/228813

Log:
  We really mean MTU of the real interface here, not of our pseudo.

Modified:
  head/sys/contrib/pf/net/if_pfsync.c

Modified: head/sys/contrib/pf/net/if_pfsync.c
==============================================================================
--- head/sys/contrib/pf/net/if_pfsync.c	Thu Dec 22 18:48:21 2011	(r228812)
+++ head/sys/contrib/pf/net/if_pfsync.c	Thu Dec 22 18:51:35 2011	(r228813)
@@ -2655,7 +2655,7 @@ pfsync_request_update(u_int32_t creatori
 		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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112221851.pBMIpaY5029485>