From owner-freebsd-net Mon Jun 11 11:51:18 2001 Delivered-To: freebsd-net@freebsd.org Received: from or2.inktomi.com (or2.inktomi.com [209.131.48.35]) by hub.freebsd.org (Postfix) with ESMTP id 6CE6737B405 for ; Mon, 11 Jun 2001 11:51:14 -0700 (PDT) (envelope-from arvindg@inktomi.com) Received: from inbox1.inktomi.com (inbox1.inktomi.com [209.131.48.26]) by or2.inktomi.com (Switch-2.1.0/Switch-2.1.0) with ESMTP id f5BIpPu03775 for ; Mon, 11 Jun 2001 11:51:25 -0700 (PDT) Received: from arvindgdp866 ([209.131.52.111]) by inbox1.inktomi.com (Netscape Messaging Server 4.1) with SMTP id GES4DE00.3U8 for ; Mon, 11 Jun 2001 11:51:14 -0700 From: "Arvind Gopalan" To: "freebsd-net" Subject: Difference in i/p params for tcp_input between BSDI 2.0 to FreeBSD 4.3 Date: Mon, 11 Jun 2001 11:51:17 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org While trying to compare some code fragments between BSDI 2.0 and FreeBSD 4.3 code I noticed that the input params for tcp_input() are different void tcp_input(m, iphlen) register struct mbuf *m; int iphlen; to void tcp_input(m, off0, proto) register struct mbuf *m; int off0, proto; What exactly is the reason for the difference ?- just curious Note that the 4.3 code for tcp_input() never really uses the 'proto' param .. the IPV6 version of tcp_input, tcp6_input itself seems to make a call (after some preprocessing), to tcp_input. Also, the 2.0 code seemed to always use the tcpiphdr pointer (ti) , unlike the 4.3 code which uses the tcphdr pointer (th) separately and ip pointer separately. Not that it matters because ip options are stripped out in both cases (if present). Thanks -Arvind To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message