Date: Mon, 11 Jun 2001 11:51:17 -0700 From: "Arvind Gopalan" <arvindg@inktomi.com> To: "freebsd-net" <freebsd-net@freebsd.org> Subject: Difference in i/p params for tcp_input between BSDI 2.0 to FreeBSD 4.3 Message-ID: <FHELLEBPLNIJOIJAKMFMKECCCDAA.Arvindg@inktomi.com>
index | next in thread | raw e-mail
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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FHELLEBPLNIJOIJAKMFMKECCCDAA.Arvindg>
