1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-24 16:10:11 +00:00

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

This commit is contained in:
Gleb Smirnoff 2011-12-22 18:51:35 +00:00
parent 1c435c73a1
commit c5360c2998
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228813

View File

@ -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