diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index c8aed5c77e75..a6e090a14689 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -294,7 +294,7 @@ gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, * RFC2004 specifies that fragmented diagrams shouldn't * be encapsulated. */ - if ((ip->ip_off & IP_MF) != 0) { + if (ip->ip_off & (IP_MF | IP_OFFMASK)) { _IF_DROP(&ifp->if_snd); m_freem(m); error = EINVAL; /* is there better errno? */