Date: Sun, 1 Jul 2001 16:19:50 +0200 (CEST) From: Luigi Rizzo <luigi@info.iet.unipi.it> To: cjclark@alum.mit.edu Cc: freebsd-ipfw@FreeBSD.ORG Subject: Re: BRIDGE in ip_fw.c Message-ID: <200107011419.QAA30334@info.iet.unipi.it> In-Reply-To: <20010630232954.J348@blossom.cjclark.org> from "Crist J. Clark" at "Jun 30, 2001 11:29:54 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> The reason I ask is that I need the flag bits of ip->ip_off. The test > to see if a packet is a fragment is, > > (ip->ip_off & (IP_OFFMASK | IP_MF)) > > And not just if the offset is non-zero. Obviously, whether ip->ip_off > is in host or network order will make a difference on how to do the same order for bridged and "regular" packets. I suppose it is host order from the previous snippet of code cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107011419.QAA30334>