From owner-FreeBSD-users-jp@jp.freebsd.org  Wed May 27 23:19:17 1998
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.8.8+3.0Wbeta13/8.7.3) id XAA14411;
	Wed, 27 May 1998 23:19:17 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from nocs1.noc.titech.ac.jp (root@nocs1.noc.titech.ac.jp [131.112.126.1])
	by jaz.jp.freebsd.org (8.8.8+3.0Wbeta13/8.7.3) with ESMTP id XAA14399
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 27 May 1998 23:19:16 +0900 (JST)
	(envelope-from aki@toto.noc.titech.ac.jp)
Received: from toto.noc.titech.ac.jp by nocs1.noc.titech.ac.jp (8.8.8/TM2.1-bn3.3)
	id XAA21225; Wed, 27 May 1998 23:19:13 +0900 (JST)
Received: (from aki@localhost)
	by toto.noc.titech.ac.jp (8.8.5/8.8.5) id XAA00857;
	Wed, 27 May 1998 23:18:12 +0900 (JST)
Message-Id: <199805271418.XAA00857@toto.noc.titech.ac.jp>
To: FreeBSD-users-jp@jp.freebsd.org
From: IIJIMA Akihiro <aki@noc.titech.ac.jp>
In-Reply-To: Your message of "Wed, 27 May 1998 20:00:06 +0900 (JST)"
References: <199805271100.UAA21568@mail.hitachi-cable.co.jp>
X-Mailer: Mew version 1.52 on Emacs 19.28.1, Mule 2.3
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Date: Wed, 27 May 1998 23:18:12 +0900
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=24]
X-Sequence: FreeBSD-users-jp 28769
Subject: [FreeBSD-users-jp 28769] Re: Is IP_DF flag always set to 1?
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

 &= $B$H(B |= $B$,FI$a$J$$HSEg(B

> FreeBSD $B$N%^%7%s$+$iAw=P$5$l$k%Q%1%C%H$N(B IP $B%X%C%@$N(B IP_DF $B$,(B
> $B>o$K(B 1 $B$K$J$C$F$7$^$&$H$$$&8=>]$KG:$s$G$$$^$9!#(B

> (/usr/src/sys/netinet/* $B$rD/$a$F$b(B IP_DF $B%S%C%H$r(B 1 $B$K$9$k(B
> $B$h$&$J2U=j$O8+$"$?$i$J$$$h$&$J5$$,$9$k$N$G$9$,(B)$B!#(B

/sys/netinet/ $B$G(B grep IP_DF $B$9$k$H!"(B

ip_output.c:            ip->ip_off &= IP_DF;
ip_output.c:    if (ip->ip_off & IP_DF) {
tcp_output.c:           ((struct ip *)ti)->ip_off |= IP_DF;

   if ((flags & (IP_FORWARDING|IP_RAWOUTPUT)) == 0) {
        ip->ip_vhl = IP_MAKE_VHL(IPVERSION, hlen >> 2);
        ip->ip_off &= IP_DF;
        ip->ip_id = htons(ip_id++);
        ipstat.ips_localout++;
   } else {
        hlen = IP_VHL_HL(ip->ip_vhl) << 2;
   }

$B$3$3$G(B $B@_Dj$7$F$$$k!)(B
--
$BEl5~9)6HBg3X(B $BAm9g>pJs=hM}%;%s%?!<(B $B%M%C%H%o!<%/%7%9%F%`1?MQ3](B
	$BHSEg(B $B><Gn(B (Akihiro Iijima) aki@noc.titech.ac.jp
