From ca8226d5d02151191249c8c6dcfe441b166d0696 Mon Sep 17 00:00:00 2001 From: hsu Date: Thu, 11 May 2006 00:53:43 +0000 Subject: Correct test for fragmented packet. --- sys/net/if_gre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index c8aed5c..a6e090a 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? */ -- cgit v1.1