Subject: Re: calculation in UDP
To: <>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-net
Date: 12/07/2002 15:01:59
--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

On Sat, Dec 07, 2002 at 01:45:05PM +0100, Thomas Finneid wrote:

> I am doing some analysis work on the network protocol stack, and are trying
> to find out where in the code in_cksum is being called in a udp output
> scenario. I have search the through the code and I found it for the input
> chain of udp but not for output.

You haven't looked very hard. It's in udp_output(), file netinet/udp_usrreq.c
for IPv4 and udp6_output() in file netinet6/udp_output.c for IPv6.

> I have also search through the web and the mail but found nothing.

The right place, if you want third-party advice, is

"Stevens/Write, TCP/IP Illustrated, Volume 2" Addison/Wesley, 0-201-63354-X

which "only" describes the state of affairs as of 4.4BSD, which was integrated
into NetBSD as of NetBSD-1.0 or -1.1, but it is a good starting point if you
want to get an overview.

Regards,
	-is

--jI8keyz6grp/JLjh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE98f9VPCRcZ/VMtk4RAs/XAKCW+XU6lOYOnTuIB7zdAq9ildV2ZwCghD2W
0h2zCbTYqHHXped+ogt68K4=
=Yj2o
-----END PGP SIGNATURE-----

--jI8keyz6grp/JLjh--