Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Aug 2005 13:43:29 +0200
From:      Gordon Bergling <gbergling@0xfce3.net>
To:        freebsd-net@freebsd.org
Subject:   [RFC] Port of DfBSDs new IP Checksum Code
Message-ID:  <42F4A261.9060207@0xfce3.net>

next in thread | raw e-mail | index | archive | help
Hi folks,

I have ported the new IP Checksum Code from DragonflyBSD to FreeBSD.

I have a patch available at
http://generic.0xfce3.net/freebsd/ipchecksum/20050805-ipchecksum.patch

This patch is against HEAD (also applies to RELENG_6).

There are a minor things where I would like to receive feedback before I'll
send-pr it.

 - sys/conf/files.*
   I comment the old in_cksum.c file out.
   Should them be deleted?

 - contrib/ipfilter/netinet/ip_compat.h
   here is a "extern" definition of in_cksum()
   I have comment it out. It compiles right away, but I am not sure that
   I have done the right thing. comments? ;)

Please not that is only the kernel part for now. I know there are some
programs in userland which require <machine/in_cksum.h>.
On of those programs is natd. At this time I grep through /usr/src to find
any programs which include the old in_cksum.h.
These things are most time s/machine/sys/ so it should be hard to do.

I'll provide a patch in a few hours for this.

Any feedback would greatly be appreciated.

best regards,

    Gordon




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42F4A261.9060207>